Pass Multiple Fields in span term query

Hi Team,

Can anyone please help how to pass multiple fields for searching in span_term query?

Example for span_term query
{ "span_term": { "field1": "value1" } }

I want to pass something like this
{ "span_term": { ["field1", "field2"]: "value1" } }

Hi @Sahil5
It seems to me that this is not possible. I would try using bool query and should to have span term for each term separately.

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