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

boostedfields for query #1510

Closed
wants to merge 2 commits into from
Closed

boostedfields for query #1510

wants to merge 2 commits into from

Conversation

kaipoykio
Copy link
Contributor

Tentative attempt at boosting fields.

@kaipoykio kaipoykio requested review from olovy and kwahlin November 5, 2024 10:38
Copy link
Contributor

@kwahlin kwahlin left a comment

Choose a reason for hiding this comment

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

Most of the stuff in BoostedFields is redundant, see EsMappings.

I suggest letting QueryParams handle the parameters and move the boost computing stuff into QueryUtil (where all that is needed should be available).

@kaipoykio
Copy link
Contributor Author

new version...

@kaipoykio kaipoykio requested a review from kwahlin November 14, 2024 13:08
Copy link
Contributor

@kwahlin kwahlin left a comment

Choose a reason for hiding this comment

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

Nice! The entity type (determining which boosting mode to apply) needs to be fetched in a different way. See separate comment.

Otherwise I think this should work...? Obviously needs some cleaning up too.


Map<String, String[]> queryParameters = new HashMap<>(ogQueryParameters);

String[] originalTypeParam = queryParameters.get("@type");
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't work in the new style API since we don't put properties as separate parameters. Instead we have to extract the type from the query tree that get from _q (+applied filters).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thumbs up ;)

@olovy
Copy link
Contributor

olovy commented Jan 9, 2025

Completed in #1531

@olovy olovy closed this Jan 9, 2025
@olovy olovy deleted the boost branch January 9, 2025 14:35
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.

3 participants