New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elasticsearch-ltr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-ltr

Python interface for Elasticsearch LTR extension

  • 1.0.2
  • PyPI
  • Socket score

Maintainers
1

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/

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc