Strict comparison

Hello all,
I want to find a document where "data.city:Barcelona". Thus, the query should return the doc 2 but not doc 1. How can I do it? Currently, I am doing a Lucene query on Kibana using "data.city:Barcelona" and it returns both documents.
Thanks!

{data.city:[Lisboa, Munich, Barcelona]}

{data.city:Barcelona}

Hello,

Which version of the stack you are on? We have KQL too and it does help to get specific results depending on your mapping.

if you could post your version of the stack and what is the mapping on your field - we should be able to narrow it down. Oh and also the Lucene query which you are using.

Thanks,
Bhavya

It worked using:
NOT data.city:/~(Barcelona)/
Cheers

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