Fetching only matching elements from an array in Elasticsearch

  • I have an String array (not nested type) . Where i want only values
  • which all are matching only not full array.
  • Lets say i have ['a','b','c','d']. But in return i want only
    ['a','b'] which will matching with my query.
1 Like

I don't think you can.

But I might have misunderstood your question.

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

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