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

Add "BoostQueryParser" #27

Open
takanuva15 opened this issue Feb 7, 2025 · 2 comments
Open

Add "BoostQueryParser" #27

takanuva15 opened this issue Feb 7, 2025 · 2 comments

Comments

@takanuva15
Copy link
Contributor

takanuva15 commented Feb 7, 2025

Hi, the apache docs reference the Boost Query Parser that can be used, but it seems there is no API for that currently within this library. Can we add that in?

(I can help with this if you are fine with me adding this feature in a PR)

@stevenferrer
Copy link
Owner

Hi @takanuva15, I can work on this a little later, could you please provide some details of your use-case for this parser? thanks!

@takanuva15
Copy link
Contributor Author

Hi, our company uses this parser for their recommendations logic when determining what "related items" to show a user when they click on a specific item. Items that match the same general topic/tag get a boost using this parser over other possible criteria, like popularity.

Here's a sample query that we would build with this parser: {!boost b=recip(ms(NOW/HOUR,myDate),3.16e-11,1,1)) v=myTopic defType=dismax}

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

No branches or pull requests

2 participants