Filter in ids query

Hi elastic wizards.

I have in my code base an ids query, and I need to add filtering capabilities to the query i.e. in addition to the ids filter, I need to be able to add additional term based filters.
Is there a way to achieve that in ids query? do I need to rewrite the query as a bool query (or any other type)? If so - What will it look like?
I'm using elastic 7.

This is my current query (inside the "query" clause):

    ids: {
        values: [
          'id1','id2'...]
    }

Thanks!

1 Like

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