Regexp not matching special chars


(Dobromir) #1

First, I am new to Elasticsearch. I am trying to use regex search feature. It is working ok, except for the special chars. Ok I already have read on several places "If you are using the default analyzer, that's expected".
My question is how to make a property not analyzed then ? I could not find a working example. I use elasticsearch v5.5.0. Can you provide me with an example of the mapping where only one property of a document is not analyzed please? Thanks in advance.


(Dobromir) #2

Anyone?


(Christian Dahlqvist) #3

Map the field as a keyword datatype.


(Dobromir) #4

Thanks Christian,

it works.


(system) #5

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