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
Failure in saving percolate query with date type function score #6340
Comments
Thanks for reporting this @ajhalani! Stacktrace:
The search context isn't set during parsing of the percolator query, causing the above stacktrace. |
Fixing the NPE that is occurring is relatively easy, but there is a bigger problem with this percolator query. The Fixing this will add additional logic similar as was added via #8534, do we want this extra complexity? |
@martijnvg i think so - it makes sense for the same reasons as #8534 |
With the new query parsing coming in 3.0, it should be possible to handle dates correctly. @martijnvg there's nothing to do before 3.0, is there? |
This has been fixed some time ago, I think I just forgot to close this issue: If |
When I try to save a query in percolate which has function score on a date field, it fails with error Failed to parse NullPointerException. If function score is on another data type field like number, it works fine.
The text was updated successfully, but these errors were encountered: