Python Elasticsearch Learning to Rank client
This is an add-on to official Python Elasticsearch client adding support for Elasticsearch Learning to Rank plugin API.
Installation
python -m pip install elasticsearch_ltr
Usage
from elasticsearch import Elasticsearch
from elasticsearch_ltr import LTRClient
client = Elasticsearch()
LTRClient.infect_client(client)
client.ltr.create_feature_store()
...
For more code you may check out tests/ folder.
Running tests
You'll need to run Elasticsearch on localhost:9200 with LTR plugin installed. Then just do
python -m pytest tests/
Metadata
Release files for elasticsearch-ltr 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elasticsearch_ltr-1.0.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elasticsearch_ltr-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / elasticsearch_ltr-1.0.0.tar.gz
| Download URL | elasticsearch_ltr-1.0.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ececfc8402cf54f621e3141f9bdd43eaec68bdf72bbcb6aed549c4430915468e
|
|
BLAKE2b-256 checksum How to use checksums |
c65bab0b851d101d1dc231012e9cc4bc627fb21435009d30b53531857a338e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Release files / elasticsearch_ltr-1.0.0-py3-none-any.whl
| Download URL | elasticsearch_ltr-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ef59a23ccd22adc2f5fa2711261e4bedcce7509e5b0538bec574e70bb60c95f
|
|
BLAKE2b-256 checksum How to use checksums |
ab58aaf127cd940efaada281bc53adf3fd90f82d52330b897ec72f9e147e4cf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|