Skip to content
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

MB-62230: Added params in KNN request when parsing a query #2071

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

metonymic-smokey
Copy link
Member

This PR adds support for search-time params in the query parser and custom JSON unmarshaling logic.

@metonymic-smokey metonymic-smokey changed the title MB-62230: Added params in query parsing MB-62230: Added params in KNN request when parsing a query Sep 11, 2024
@metonymic-smokey metonymic-smokey marked this pull request as ready for review September 11, 2024 12:07
@abhinavdangeti abhinavdangeti added this to the v2.4.3 milestone Sep 13, 2024
search_knn.go Outdated Show resolved Hide resolved
@@ -196,6 +197,7 @@ func (r *SearchRequest) UnmarshalJSON(input []byte) error {
r.KNN[i].VectorBase64 = temp.KNN[i].VectorBase64
r.KNN[i].K = temp.KNN[i].K
r.KNN[i].Boost = temp.KNN[i].Boost
r.KNN[i].Params = temp.KNN[i].Params
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this a regression from the previous change?

Copy link
Member Author

@metonymic-smokey metonymic-smokey Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, fixed in this commit.

@abhinavdangeti abhinavdangeti merged commit 58c4214 into master Sep 17, 2024
18 checks passed
@abhinavdangeti abhinavdangeti deleted the params branch September 17, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants