Skip to content

Low-level client for Elasticsearch Learning to Rank plugin.

License

Notifications You must be signed in to change notification settings

Saluev/elasticsearch-ltr-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Low-level client for Elasticsearch Learning to Rank plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages