Function_score executes inner-filter even if query fails


Am using elasticsearch v0.90.12.

I have a function score query of the form:

  • query: Q1
  • functions: [{filter:F1, function:func1 }]

Both Q1 & F1 have their names set. This function_score when executed in
isolation returns 0 results when Q1 fails. But when this function_score is
run within a boolean query combined with other queries, F1 is executed for
all results though Q1 failed for the results. This can be seen from the matched_filters
in results. The scores are not affected though.

Please find the CURL recreation


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit