Python interface for Elasticsearch LTR extension
Project description
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 have to run Elasticsearch on localhost:9200
with LTR plugin installed. Then just do
python -m pytest tests/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for elasticsearch_ltr-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47feef6cd26aadab84b5468f3c61197b8ddeac65cc2d20bbdd2b487f7e2c0501 |
|
MD5 | ca502858f9f9b3014758457497167a05 |
|
BLAKE2b-256 | e1d6a2e962f95313a66406bc26b6c707eccb0b9e992ad50b87d6373be7265740 |