I want to get the same results if the words have empty space or no space

Hi everyone

I want to get the same results if the words have empty space or no space.

For example, we have a product called "washing mach ine" and I want the washing machine to return if the user searches for the word "washing machine".

Conversely, if the user searches for the word "washingmachine", the washing machine will be returned

And consider that the searches in my system are based on Persian language

Examples in Persian are as follows

"ماشین لباسشویی -> ماشین لباس شویی"

"چراغ اویز -> چراغاویز"

@Mark_Harwood @DavidTurner

How about using Mapping Character Filter with {"mappings":["\\u0020 =>"]} and N-gram tokenizer?

It's impolite to @mention random people that aren't involved in your conversation. Please don't do this.

1 Like

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