0
votes

I'm trying to have azure search return documents that contain a search query like Veri for example. Right now it only returns documents that only have Veri in them, I want it to return documents that have Veriz, Verizo, and Verizon etc.

My URL looks like so const url = config.DEFAULT_AZURE_SEARCH_URL + '/indexes/temp/docs?api-version=2015-02-28-Preview&searchMode=all&queryType=simple&search=' + terms + '&$skip=' + skip + '&$top=' + limit

and terms = Veri*

1

1 Answers

0
votes

Which language analyzer are you using to analyze the text?

Generally, Lucene analyzers perform stemming of the tokens. This may change the token before it is stored in the index. eg:'Eating', 'Eat', 'Eaten' can all be stemmed and stored as 'eat' in the Lucene index.

Can you try to switch to Microsoft English analyzer 'en.microsoft', and see if it solves the issue.