Treating DOT as space


(Arvind Kumar Chigurala) #1

Continuing the discussion from Dot not used as delimiter:

How do I update the word_delimter filter to look for dot and convert that to space ?


(Ivan Brusic) #2

I would apply a char filter for replacements before the word delimiter
filter:

https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-mapping-charfilter.html

The tokenizer will be executed before any token filters, so may not have
the dot in your token at that point (depending on which tokenizer you used).

Ivan


(Arvind Kumar Chigurala) #3

I need dot to be both treated as DOT and also as space.

Can you please give me a example of how to do that in char filter?

Similar to this https://support.dtsearch.com/dts0154.htm


(system) #4