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


Release history Release notifications

Download files

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

Files for elasticsearch-ltr, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size elasticsearch_ltr-1.0.0-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size elasticsearch_ltr-1.0.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page