Difference between filter and filtered query in function_score?

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

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

and simply

{ function_score: { filter: ...

Thanks.

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.

1 Like

behave the same? the query speed response time too?

Yes, response times too.

1 Like