Azure Search synonyms not reflecting in results

0 votes

The synonyms don't seem to function in Azure Search

I updated my synonyms map with the following payload {
"name" : "synonymmap1",
"format" : "solr",
"synonyms" :

"Bob, Bobby,Bobby\n
Bill, William, Billy\n
Harold, Harry\n
Elizabeth, Beth\n
Michael,Mike\n
Robert, Rob\n"

}

Then when I examined the synonymMap, I see this

{

"@odata.context": 
"https://athenasearchdev.search.windows.net/$metadata#synonymmaps",
"value": [
    {
        "@odata.etag": "\"0x8D4E7F3C1A9404D\"",
        "name": "synonymmap1",
        "format": "solr",
        "synonyms": "Bob, Bobby,Bobby\n\r\n    Bill, William, Billy\n\r\n    Harold, Harry\n\r\n    Elizabeth, Beth,Liza, Elize\n\r\n    Michael,Mike\n\r\n    Robert, Rob\n\r\n"
    }
]

}

However, the synonyms don't seem to function. e.g results for a search on Mike and Michael are not identical?

I understand this is a preview feature, but wanted help on the following

a) once defined as synonyms, should we not expect exact same results and search scores across all synonym variations

b) Can these synonyms apply at a column level (e. first name alone and not address)- or is it always across the document

c) if we have a large set of synonyms (over 1000)- does it lead to performance impact?

Mar 2, 2022 in Azure by Edureka
• 13,620 points
879 views

1 answer to this question.

0 votes
You most certainly should. If the words "Bill" and "Williams" were considered synonyms. A search on either should get the same results.
It always occurs at the column level. To select the synonym maps to utilise, use the'synonymMaps' field/column parameter. For further details, see "Setting the synonym map in the index definition" at https://azure.microsoft.com/en-us/blog/azure-search-synonyms-public-preview/.
answered Mar 2, 2022 by Edureka
• 12,690 points

Related Questions In Azure

0 votes
0 answers

Azure Functions not showing up in Function app in portal

I've got a solution that contains a ...READ MORE

Mar 26, 2022 in Azure by Edureka
• 13,620 points
3,144 views
0 votes
1 answer

Can I create virtual machine without virtual network in Azure Resource Manager?

A VNet is used to provide the ...READ MORE

answered Mar 4, 2022 in Azure by Edureka
• 13,620 points
2,191 views
0 votes
1 answer

Azure Pricing Calculator for Hours in Cloud Service

The best method to understand Cloud Service ...READ MORE

answered Mar 29, 2022 in Azure by Edureka
• 12,690 points
785 views
0 votes
1 answer
0 votes
1 answer

Azure Search Synonym Maps not returning expected results

I figured out what was wrong. You ...READ MORE

answered Mar 8, 2022 in Azure by Edureka
• 13,620 points
750 views
0 votes
0 answers
0 votes
1 answer

enable azure search synonyms

The '@' in the synonymmap definition designates ...READ MORE

answered Mar 1, 2022 in Azure by Edureka
• 12,690 points
499 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP