Kuery exact match

(Gregory Boero-Teyssier) #1

Hi ,

is it possible with the kuery language to do an exact match on a field ?

By example :
to match "url":"http://myDomaine.com/" but exclude all the http://myDomaine.com/* possibility

Thanks and Regards

(Bill McConaghy) #2

Hmm, I'm not sure, maybe @Bargs can answer this one?

(Matt Bargar) #3

Exact matches are easier to query for if your field is mapped as a keyword. It looks like your url field is a text field. Do you have a url.keyword field? (Elasticsearch would create this multi field by default) If so you should be able to do search for an exact match with it e.g. url.keyword:"http://mydomain.com/"

(system) #4

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