-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support neural query type #674
Conversation
0195446
to
978a021
Compare
Signed-off-by: Kirill_Ostanin <Kirill_Ostanin@epam.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Do you think yo could add a doc and a working sample into https://github.com/opensearch-project/opensearch-java/tree/main/guides and https://github.com/opensearch-project/opensearch-java/tree/main/samples as part of this?
@GranT1337 Looks like you'll need to fix spotless and such ... I'll change this whole CI doesn't run on first time committer nonsense |
@GranT1337 LGTM as well, please add changelog entry, thank you |
Signed-off-by: Kirill Ostanin <grantkirill@gmail.com>
Signed-off-by: Kirill Ostanin <grantkirill@gmail.com>
@dblock Creating a sample is quite difficult. To make a simple example, you need to:
The model is quite large for a simple example, and opensearch-java currently does not allow performing these steps through Java code, i.e., sending JSON text is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this code. I think working samples and documentation are worth it, even if difficult or has a bunch of prerequisites, but I won't hold this PR for it.
java-client/src/main/java/org/opensearch/client/opensearch/_types/query_dsl/NeuralQuery.java
Outdated
Show resolved
Hide resolved
java-client/src/main/java/org/opensearch/client/opensearch/_types/query_dsl/NeuralQuery.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kirill Ostanin <grantkirill@gmail.com>
Signed-off-by: Kirill Ostanin <grantkirill@gmail.com>
* Add support neural query type Signed-off-by: Kirill_Ostanin <Kirill_Ostanin@epam.com> * fix spotless Signed-off-by: Kirill Ostanin <grantkirill@gmail.com> * Update CHANGELOG.md Signed-off-by: Kirill Ostanin <grantkirill@gmail.com> * refactoring Signed-off-by: Kirill Ostanin <grantkirill@gmail.com> * attempt to restart integration tests Signed-off-by: Kirill Ostanin <grantkirill@gmail.com> --------- Signed-off-by: Kirill_Ostanin <Kirill_Ostanin@epam.com> Signed-off-by: Kirill Ostanin <grantkirill@gmail.com> Co-authored-by: Kirill Ostanin <grantkirill@gmail.com> (cherry picked from commit 4603af9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add support neural query type * fix spotless * Update CHANGELOG.md * refactoring * attempt to restart integration tests --------- (cherry picked from commit 4603af9) Signed-off-by: Kirill_Ostanin <Kirill_Ostanin@epam.com> Signed-off-by: Kirill Ostanin <grantkirill@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Kirill Ostanin <grantkirill@gmail.com>
Description
Adds support for neural query type for neural text search
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.