Reputation: 5117
In elastic search is it possible to search aliases of search tokens, for example, if users are searching for ‘USD’ then they should also get results matching ‘dollar’.
Upvotes: 1
Views: 77
Reputation: 32376
Yes, what you are referring is the synonym search
which can be achieved by creating the additional tokens in your index for USD
, which is dollar
in your case, Please read more about here. This way now as you have both these tokens present in your inverted index, hence searching for any of this would give the search result.
Upvotes: 1