How can we sort tokens before indexing to elastic search. for Eg. i want to index
"a b" => "ab"
"b a" => "ab"
"java language" => "javalanguage"
"requirement analysis" => "analysisrequirement"
After sorting we are concatenating all tokens for our use case.
How can we achieve this using custom sort analyser?.
EDIT: so we have applied couple of custom analyser on Elastic search mapping for our use case. For eg. we have
token
stemming
custom_words_concatenation
I want to sorting of words using analyser. like below,
token
stemming
sort
custom_words_concatenation