Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
MatchQueryParser doesn't allow field boosting on query when included in a _GET request #3024
In the following query, we try to boost the FirstLast field by 7 and it fails:
This behavior works correctly in the MultiMatchQueryParser:
Note that the boost does work when the request is a _POST as so:
I'm just getting used to the code and have no debugger setup yet so forgive me if I'm mistaken or incorrectly using this.
Tracked this down. Looks like the parsed query boost is getting reset to the default of 1.0 on this line:
If yes, I can open a pull request.