Difference between filter and filtered query in function_score?


(Matt Ruzicka) #1

When doing a Function Score Query, what's the difference between doing

{ function_score: { query { filtered { query: ...

and simply

{ function_score: { filter: ...

Thanks.


(Adrien Grand) #2

Assuming that you put the same filter under the filtered query in the 1st example and as a filter in the 2nd example, both will behave the same.


(Jason Wee) #3

behave the same? the query speed response time too?


(Adrien Grand) #4

Yes, response times too.


(system) #5