elasticsearch-ltr-1.0.2
توضیحات
Python interface for Elasticsearch LTR extension
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | elasticsearch-ltr-1.0.2 |
| نام | elasticsearch-ltr |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tigran Saluev |
| ایمیل نویسنده | tigran@saluev.com |
| آدرس صفحه اصلی | https://github.com/Saluev/elasticsearch-ltr-py |
| آدرس اینترنتی | https://pypi.org/project/elasticsearch-ltr/ |
| مجوز | - |
# 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 have to run Elasticsearch on `localhost:9200` with LTR plugin installed. Then just do
python -m pytest tests/
نیازمندی
| مقدار | نام |
|---|---|
| <8.0.0,>=7.0.0 | elasticsearch |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl elasticsearch-ltr-1.0.2:
pip install elasticsearch-ltr-1.0.2.whl
نصب پکیج tar.gz elasticsearch-ltr-1.0.2:
pip install elasticsearch-ltr-1.0.2.tar.gz