Neural search transforms text into vectors and facilitates vector search both at ingestion time and at search time.
  • Java 97.7%
  • C++ 1.5%
  • Shell 0.4%
  • Python 0.3%
  • CMake 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Martin Gaievski 9fb76e8693
Match the k-NN explanation by shape in explain ITs, Lucene 10.6 changed its wording (#2077)
* Match the k-NN explanation by shape in explain ITs, Lucene 10.6 changed its wording

Lucene 10.6.0 (apache/lucene#16271) rewords DocAndScoreQuery.explain() for a
k-NN match from "within top N docs" to "Within top N doc(s)", and OpenSearch
core moved to 10.6.0 in opensearch-project/OpenSearch#23475. Since then the
scheduled main build fails HybridQueryExplainIT (two tests asserting the exact
old text) and HybridQueryFusedModeExplainIT (a contains("docs") check that
"doc(s)" does not satisfy).

The text belongs to Lucene, so assert the shape of that leaf instead: a k-NN
explanation within the top N candidates, in either wording. TestUtils gets the
pattern plus isKnnWithinTopDocsExplanation and assertKnnWithinTopDocsExplanation,
which still checks N. Both wordings are accepted so the same tests hold on 3.9,
which builds against Lucene 10.5.1.

Signed-off-by: Martin Gaievski <gaievski@amazon.com>

* Add CHANGELOG entry for #2077

Signed-off-by: Martin Gaievski <gaievski@amazon.com>

---------

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
2026-11-03 16:39:08 -08:00
.github Update maintainer status for VijayanB (#2035) 2026-10-12 13:40:12 -07:00
.idea Enabled the K-NN plugin and ML plugin for integ test cluster. (#6) 2022-09-29 11:39:47 -07:00
formatter Guard eclipse() to spotless tasks and keep P2 mirror on pinned version (neural-search) (#1988) 2026-09-03 10:56:10 -04:00
gradle/wrapper Upgrade gradle wrapper to 9.4.1 (#1849) 2026-05-05 12:26:49 -07:00
jni [Sparse ANN] Bump neural-sparse-cpp submodule for the DiskSeismic mmap madvise fix (#55) (#2005) 2026-09-14 15:30:16 +08:00
qa [Infrastructure] Register test models from raw.githubusercontent.com directly, fixes BWC restart-upgrade 2.9–2.11 (#2070) 2026-10-27 09:19:34 -07:00
release-notes [AUTO] Add release notes for 3.9.0 (#2009) 2026-09-16 13:21:30 -07:00
scripts [Sparse ANN] [Native] Ship the native sparse engine in the distribution build (#1978) 2026-09-03 15:44:34 +08:00
src Match the k-NN explanation by shape in explain ITs, Lucene 10.6 changed its wording (#2077) 2026-11-03 16:39:08 -08:00
.gitignore [Sparse ANN] [Native] Add the nsparse JNI layer for the native sparse engine (#1972) 2026-08-31 15:05:50 +08:00
.gitmodules [Sparse ANN] [Native] Add the nsparse JNI layer for the native sparse engine (#1972) 2026-08-31 15:05:50 +08:00
.whitesource Add .whitesource configuration file (#51) 2023-03-20 20:12:01 -07:00
ADMINS.md [#1]Fix CI and Link Checker github workflows (#3) 2022-09-26 11:17:20 -07:00
build.gradle Increment version to 3.10.0-SNAPSHOT (#2022) 2026-10-01 09:45:59 -07:00
CHANGELOG.md Match the k-NN explanation by shape in explain ITs, Lucene 10.6 changed its wording (#2077) 2026-11-03 16:39:08 -08:00
CODE_OF_CONDUCT.md Initial commit 2022-09-22 20:20:37 -07:00
codecov.yml Update codecov to check during PR (#995) 2024-11-19 13:49:15 -08:00
CONTRIBUTING.md Support k-NN radial search parameters in neural search (#697) 2024-04-23 08:46:31 -07:00
DEVELOPER_GUIDE.md Add hybrid DLS cross-plugin integration tests (#1957) 2026-09-04 13:39:37 -07:00
gradle.properties Increment version to 3.10.0-SNAPSHOT (#2022) 2026-10-01 09:45:59 -07:00
gradlew Upgrade to gradle 9.2 and run CI with JDK 25 (#1667) 2025-11-21 15:40:33 -08:00
gradlew.bat Upgrade to gradle 9.2 and run CI with JDK 25 (#1667) 2025-11-21 15:40:33 -08:00
LICENSE Initial commit 2022-09-22 20:20:37 -07:00
lombok.config Added MLCommonsClientAcessor and MLPredict TransportAction for accessing the MLClient APIs predict API. (#16) 2022-10-10 17:53:00 -07:00
MAINTAINERS.md Update maintainer status for VijayanB (#2035) 2026-10-12 13:40:12 -07:00
NOTICE Initial commit 2022-09-22 20:20:37 -07:00
README.md Initial commit for adding BWC tests in neural search plugin (#515) 2024-01-02 13:03:47 -08:00
RELEASING.md Upgrade to gradle 9.2 and run CI with JDK 25 (#1667) 2025-11-21 15:40:33 -08:00
repositories.gradle Add ci.opensearch.org/m2/ mirror for plugin resolution (neural-search) (#1920) (#1921) 2026-07-31 17:42:10 -04:00
SECURITY.md Updating security reachout email (#748) 2024-05-27 09:57:49 +08:00
settings.gradle Add ci.opensearch.org/m2/ mirror for plugin resolution (neural-search) (#1920) (#1921) 2026-07-31 17:42:10 -04:00
TRIAGING.md Upgrade BWC version and fix neural search build (#868) 2024-08-20 16:58:48 -07:00

Build and Test Neural Search codecov Documentation Chat PRs welcome!

OpenSearch Neural Search is an OpenSearch plugin that adds dense neural retrieval into the OpenSearch ecosystem. The plugin provides the capability for indexing documents and doing neural search on the indexed documents.

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.