Concatenate analyzers

Is it possible to reach the following?

POST my_index/_analyze
{
  "analyzer": "customer_analyzer_for_search_only",
  "text": ["ka bel"]
}

tokens
["ka", "bel", "kabel"]

So during the search it always add 1 more token that contains replacement of all spaces " " with "". I mean if user accidentaly type a space symbol he would be able to get results for "kabel" as well.

Welcome!

Have a look at https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-shingle-tokenfilter.html

That might help to solve this use case.

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