Need an analyzer that can split words by dot and reserve numbers


(CreateChen) #1

Hi,

Standard analyzer can't split words by a dot, and simple analyzer filter out the numbers.

I want to split words by dot and reserve numbers, which analyzer should I use?
Example:
"google.com 123" => ["google", "com", "123"]

thanks.


(Ryan Ernst) #2

Take a look at the pattern tokenizer:
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-pattern-tokenizer.html


(system) #3

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