We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a knn query like
KnnQuery origin = new KnnQuery.Builder().field("field").vector(new float[] { 0.1f, 0.4f }).k(1).build();
When it serialize to json string, the result would be:
{"field":{"vector":[0.10000000149011612,0.4000000059604645],"k":1}}
like the test code shows:
opensearch-java/java-client/src/test/java/org/opensearch/client/opensearch/_types/query_dsl/KnnQueryTest.java
Lines 16 to 20 in 4436e89
PR #882
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the bug?
There is a knn query like
When it serialize to json string, the result would be:
like the test code shows:
opensearch-java/java-client/src/test/java/org/opensearch/client/opensearch/_types/query_dsl/KnnQueryTest.java
Lines 16 to 20 in 4436e89
Do you have any additional context?
PR #882
The text was updated successfully, but these errors were encountered: