Skip to main content

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 need to run Elasticsearch on localhost:9200 with LTR plugin installed. Then just do

python -m pytest tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elasticsearch_ltr-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

elasticsearch_ltr-1.0.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page