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
Support query and filter in function_score
#8638
Labels
>enhancement
:Search/Search
Search-related issues that do not fall into other categories
v1.5.0
v2.0.0-beta1
Comments
Hi @sandstrom You can use a @brwe ? |
@clintongormley Awesome, thanks for looking into this! ⛵ |
easiest would be to just convert given query and filter to a filtered_query. I'll make a pr shortly. |
brwe
added a commit
to brwe/elasticsearch
that referenced
this issue
Nov 26, 2014
Before, if filter and query was defined for function_score, then the filter was silently ignored. Now, if both is defined then function score query wraps this in a filtered_query. closes elastic#8638
@brwe Awesome! |
clintongormley
added
:Search/Search
Search-related issues that do not fall into other categories
and removed
:Query DSL
labels
Feb 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>enhancement
:Search/Search
Search-related issues that do not fall into other categories
v1.5.0
v2.0.0-beta1
Function score is an excellent addition to ES. However, it doesn't support query + filter, which works in most other parts of ES.
Currently,
function_score
takes either a filter OR a query, but not both. Allowing support for both query and filter would be good because:Below is a simple use-case.
Reference
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html
The text was updated successfully, but these errors were encountered: