I have two words for example
1." دارو خانه عباسی"
when I search
my result is just number 2 but i want to show tow words
how do I search?
There are several approaches I can think of, all of which require you to set up a custom analyzer. Through a custom analyzer you could implement either:
- Synonyms. Basically a way of telling Elasticsearch: if I search for "داروخانه", I also want to find "دارو خانه".
- Decompounding. A way of breaking up compound words into their word parts.
- NGrams. A "brute force" method of searching for substrings of strings.
I'd say the synonym approach is the easiest to set up, but the downside of that approach is that you will have to provide and maintain a list of words that you want to match.
thank you for response.I'v made a list of synonym words .I search the word too and synonym of the word too.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.