-
Notifications
You must be signed in to change notification settings - Fork 24.6k
-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Allow post_filter access to the _score #20131
Comments
@s1monw do you mean in my example I have to use |
Really need this feature, as score calculation in each filter slows down our search. What can I do to push it forward? |
@jpountz is there any reason why the |
Agreed it'd be nice for scores to be available to post filters but there is no way that I can think of that we can propagate the information today. |
@jpountz does it mean it cannot be implemented in the nearest future? |
Is it not possible to propagate the information because there is no "formal" channel of communication between scoring and |
Yes. In short, the |
@jpountz thanks for the reply. Since situation is like that, shouldn't this feature request be abstracted to a more general "access computed fields in post_filter"? In an ideal scenario (not really an ES expert here, please bear with me) one could compute via scripts multiple "virtual" script fields and then use them in the post_filter. I know that this possibility would have an impact on the memory usage since reduction would require more buffers, but just throwing it there as it seems a common use-case... |
I still hope the For more details also look to the #10767 (use-case is quite often) |
Any update on this issue? Using query points for pagination and score sorting really depends on having this! 😄 |
@izaakschroeder I also had such usecase, would be great if anyone from the ES team can look into that soon. |
cc @elastic/es-search-aggs |
Any news on this? |
This is a rather old issue that is not straight-forward to address and we don't have plans to work on at this time, hence I am closing it. |
I found it's allowed to access
_score
inside theaggs
, but not allowed to access this field in thepost_filter
queries, though it's executed after theaggs
. Is there a reason for that or it could be added?An example query:
script_score
could be much more complex, it's just an example.More than that I cannot find a solution to that problem: http://stackoverflow.com/questions/39109511/how-to-filter-by-script-field-in-elasticsearch?noredirect=1&lq=1
The text was updated successfully, but these errors were encountered: