• Java 97.8%
  • Python 2%
  • Shell 0.2%
Find a file
Darshit Chanpura a76263b551
Reach the feature store indices through the plugin subject (#436)
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Co-authored-by: Scott Stults <sstults@opensourceconnections.com>
Co-authored-by: Daniel Wrigley <54574577+wrigleyDan@users.noreply.github.com>
2026-12-02 16:42:41 -08:00
.github Run integration tests with the Security plugin (#451) 2026-11-18 08:23:19 +01:00
demo/xgboost-demo Add SPDX license header checker and missing headers (#410) 2026-11-06 16:25:05 -05:00
gradle/wrapper Updating gradle wrapper version SHA and preferred java version (#336) 2026-05-26 12:07:01 -07:00
licenses Bump RankyMcRankFace to 0.4.0 (#446) 2026-10-29 13:53:46 -04:00
release-notes [Backport main] [AUTO] Add release notes for 3.10.1 (#461) 2026-11-23 22:02:44 -05:00
sample_models Produce sample model scripts for each supported model 2017-03-09 14:16:30 -08:00
scripts Add SPDX license header checker and missing headers (#410) 2026-11-06 16:25:05 -05:00
src Reach the feature store indices through the plugin subject (#436) 2026-12-02 16:42:41 -08:00
.eclipseformat.xml Add Spotless to build 2025-01-27 17:41:20 -08:00
.gitignore Support integTests against an external test cluster with security pluin enabled 2025-01-27 17:31:54 -08:00
.java-version Updating gradle wrapper version SHA and preferred java version (#336) 2026-05-26 12:07:01 -07:00
.licenserc.json Remove legacy release and Docker workflows and the docker directory (#452) 2026-11-17 12:49:56 -05:00
.whitesource Add .whitesource configuration file 2023-06-13 17:06:58 +00:00
ADMIN.md adding standard OpenSearch issue templates and ADMIN/MAINTAINERS/CODEOWNERS list 2023-06-14 10:19:10 -04:00
build.gradle Reach the feature store indices through the plugin subject (#436) 2026-12-02 16:42:41 -08:00
CODE_OF_CONDUCT.md adding standard opensearch code of conduct 2023-06-15 11:21:07 -04:00
CONTRIBUTING.md Fix some docs that were still referring to ES and old documentation website (#66) 2024-11-08 17:38:24 -05:00
DEVELOPER_GUIDE.md Reach the feature store indices through the plugin subject (#436) 2026-12-02 16:42:41 -08:00
gradle.properties Modified build scripts to onboard ltr to OpenSearch 2025-01-13 17:36:48 -08:00
gradlew Upgrade Gradle to 9.2.0 (#263) 2025-11-25 11:36:33 -05:00
gradlew.bat Upgrade Gradle to 9.2.0 (#263) 2025-11-25 11:36:33 -05:00
KNOWN_ISSUES.md Ported code to Opendistro 1.0.0 2021-08-24 21:39:52 +02:00
LICENSE.txt Adds Lucene learning to rank query; begins test 2016-12-24 22:17:36 -05:00
MAINTAINERS.md Nominate Daniel Wrigley (@wrigleyDan) as a maintainer (#444) 2026-11-10 14:18:34 -05:00
NOTICE.txt Add required notice 2017-09-30 15:29:20 -04:00
README.md Align README.md structure & add DEVELOPER_GUIDE.md & SECURITY.md (#440) 2026-10-20 10:42:44 -04:00
SECURITY.md Align README.md structure & add DEVELOPER_GUIDE.md & SECURITY.md (#440) 2026-10-20 10:42:44 -04:00
settings.gradle Add ci.opensearch.org/m2/ mirror for plugin resolution (opensearch-learning-to-rank-base) (#394) 2026-07-31 16:45:23 -04:00

Build and Test LTR codecov Documentation Chat Chat PRs welcome!

OpenSearch Learning to Rank

OpenSearch Learning to Rank is an OpenSearch plugin that uses machine learning to improve search relevance ranking. It lets you store features (templated queries), log feature values to build training data, upload models trained with tools such as RankLib or XGBoost, and rescore search results with those models at query time.

This project is a fork of the Elasticsearch Learning to Rank plugin, rewritten in parts to work with OpenSearch. The original Elasticsearch LTR plugin powers search at places like Wikimedia Foundation and Snagajob.

For usage, see the OpenSearch Learning to Rank documentation.

Installation

Starting with OpenSearch 2.19, the Learning to Rank plugin is included in the default OpenSearch distribution. No separate installation is needed.

For the minimal distribution or custom builds, install the plugin zip that matches your OpenSearch version. The plugin zips are published to Maven Central:

OpenSearch Location Example
3.x org.opensearch:ltr bin/opensearch-plugin install https://repo1.maven.org/maven2/org/opensearch/ltr/3.9.0.0/ltr-3.9.0.0.zip
2.19.x org.opensearch:opensearch-ltr bin/opensearch-plugin install https://repo1.maven.org/maven2/org/opensearch/opensearch-ltr/2.19.0.0/opensearch-ltr-2.19.0.0.zip

Zips for releases before 2.19 are available on the releases page.

If you are already running OpenSearch, don't forget to restart it after installing the plugin.

Legacy releases
OpenSearch Command
1.0.0 bin/opensearch-plugin install https://github.com/aparo/opensearch-learning-to-rank/releases/download/1.0.0/ltr-1.5.4-os1.0.0.zip
1.1.0 bin/opensearch-plugin install https://github.com/aparo/opensearch-learning-to-rank/releases/download/1.1.0/ltr-1.5.4-os1.1.0.zip
1.2.0 bin/opensearch-plugin install https://github.com/aparo/opensearch-learning-to-rank/releases/download/1.2.0/ltr-1.5.4-os1.2.0.zip
1.2.2 bin/opensearch-plugin install https://github.com/aparo/opensearch-learning-to-rank/releases/download/1.2.2/ltr-1.5.4-os1.2.2.zip
1.2.3 bin/opensearch-plugin install https://github.com/aparo/opensearch-learning-to-rank/releases/download/1.2.3/ltr-1.5.4-os1.2.3.zip
2.2.1 bin/opensearch-plugin install https://github.com/aparo/opensearch-learning-to-rank/releases/download/2.2.1/ltr-2.0.0-os2.2.1.zip
2.5.0 bin/opensearch-plugin install https://github.com/gsingers/opensearch-learning-to-rank-base/releases/download/release-v2.1.0/ltr-plugin-v2.1.0.zip
2.11.1 bin/opensearch-plugin install https://github.com/opensearch-project/opensearch-learning-to-rank-base/releases/download/release-v2.11.1/ltr-plugin-v2.11.1.zip
2.17.1 bin/opensearch-plugin install https://github.com/opensearch-project/opensearch-learning-to-rank-base/releases/download/2.17.1/ltr-2.17.1-os2.17.1.zip

(You'll be asked to confirm some security exceptions; pass -b to opensearch-plugin to accept them automatically.)

Project Resources

Code of Conduct

This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact opensource-codeofconduct@amazon.com with any additional questions or comments.

License

This project is licensed under the Apache v2.0 License.

Copyright OpenSearch Contributors. See NOTICE for details.