Performance of post_filterr vs filter

Hi,
I'm writing a service that receive as a parameter an elastic query and need to add, automatically, without knowing the query, extra conditions. From what i sow, there are 2 options:

  1. post_filter - more simple, the query is a black box and i just add post_filter to it
  2. filter - more complex, i need to analyse the query and determine where to add the filter conditions

which solution has better performance?

thanks,
tal

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.