ems-project / elasticms

ElasticMS's monorepo
MIT License
3 stars 8 forks source link

Need of an elasticsearch analyzer that can store version (e.g. "1.2.3") in a smart way #53

Open Ivanho92 opened 4 years ago

Ivanho92 commented 4 years ago

Example: "orejime-v1.2.3.js.twig" => ["orejime", "v", "1", "1.2", "1.2.3", "js", "twig"]

Right now it's impossible because Standard analyzer cannot split words by dots, and simple analyzer filters out the numbers.

Maybe we should look at the pattern tokenizer? https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-pattern-tokenizer.html

dameert commented 4 years ago

Hello @Ivanho92 ,

Analysers are configurable in the backend of the core system. You can add a new analyser and use it on your field of choice!