Search code examples
regexluceneelasticsearchkibana

Kibana query exact match


I would like to know how to query a field to exactly match a string.

I'm actually trying to query like this:

url : "http://www.domain_name.com"

Which returns all string starting with http://www.domain_name.com .


Solution

  • I had a similar issue, and ifound that ".raw" fixed it - in your example, try

    url.raw : "http://www.domain_name.com"
    

    Or for newer versions of ES(5.x, 6.x):

    url.keyword : "http://www.domain_name.com"