Elasticsearch - configure lower case parser without tokenizer

Is there a way to configure a parser that will only input data before indexing?

So, for example, if I get:

"name": "Foo Bar" 

The output term should be "foo bar", so I can use the term query to query for this exact term.

My use case is to index an object that I will query later with the term query, so I want each thing to be an index after the bottom.

Thanks!

+5
source share
1 answer

Ok, found it!

The tokenizer keyword seems to be the right tokenizer.

 "analysis": { "analyzer": { "lowercase": { "type": "custom", "tokenizer": "keyword", "filter": [ "lowercase" ] } } } 
+5
source

Source: https://habr.com/ru/post/1237585/


All Articles