Metadata-Version: 2.1
Name: elasticsearch-ltr
Version: 1.0.0
Summary: Python interface for Elasticsearch LTR extension
Home-page: https://github.com/Saluev/elasticsearch-ltr-py
Author: Tigran Saluev
Author-email: tigran@saluev.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: elasticsearch (<8.0.0,>=7.0.0)

# Python Elasticsearch Learning to Rank client

This is an add-on to [official Python Elasticsearch client](https://github.com/elastic/elasticsearch-py) adding support 
for [Elasticsearch Learning to Rank](https://github.com/o19s/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/


