Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure search doesn't distinguish between singular and plural

I'm using Azure search and in my indexed database table I have a row with the text 'Government Grants'.

When i search 'Grant' it returns no results, If I search 'Grants' it returns results

I have the same issue with 'Sales' and 'Sale'

How can I configure azure search so that it matches singular and plural words?

like image 946
user1825645 Avatar asked Mar 15 '23 07:03

user1825645


1 Answers

Please check that corresponding field in your search index is set to be searchable, and that a natural language analyzer (such as "en.lucene" or "en.microsoft") is selected as the analyzer for that field. The default analyzer, "standard", doesn't handle plural forms or any other word inflections, because it doesn't do any linguistic processing.

HTH, Eugene

like image 176
Eugene Shvets Avatar answered May 14 '23 02:05

Eugene Shvets