Azure Search Synonym Maps not returning expected results

0 votes

 am trying to get Azure Search Synonyms to work but it does not seem to be working for me. The things that I have already done: 1) I added the synonym map:

        {
            "@odata.etag": "\"0x8D77E66017FAAF9\"",
            "name": "bodytypes-synonymmap",
            "format": "solr",
            "synonyms": "fafafafafa, service van, utility van => Service Utility Van"
        }

2) Then I associated that map to the index field that holds the data:

            "name": "BodyType",
            "type": "Edm.String",
            "searchable": true,
            "filterable": true,
            "retrievable": true,
            "sortable": false,
            "facetable": true,
            "key": false,
            "indexAnalyzer": null,
            "searchAnalyzer": null,
            "analyzer": null,
            "synonymMaps": [
                "bodytypes-synonymmap"
            ]
        }

3) I am testing the search with the test term "fafafafafa" and I do not get any results back, but I do get search result back for "Service Utility Van". That leads me to believe that the Search Synonyms are not working for some reason.

More info: I am on the free tier of the service, does that make a difference?

Mar 4, 2022 in Azure by Edureka
• 13,620 points
750 views

1 answer to this question.

0 votes
I figured out what was wrong. You were putting a @ symbol in front of the synonym map string, which turned it into a string literal that contained the "n" newline sign as part of the replacement search term, which resulted in no results.
answered Mar 8, 2022 by Edureka
• 13,620 points

Related Questions In Azure

0 votes
1 answer
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

VM Created from Image with Azure Powershell does not set ComputerName

It might be caused by the image ...READ MORE

answered Apr 1, 2022 in Azure by Edureka
• 12,690 points
790 views
0 votes
1 answer

Azure DNS - Domains Not Being Found By Public Internet

Try one or more of the following ...READ MORE

answered Apr 4, 2022 in Azure by Edureka
• 12,690 points
1,434 views
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
0 votes
1 answer

Azure Search synonyms not reflecting in results

You most certainly should. If the words ...READ MORE

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

Azure HD Insight - YARN UI is not showing logs on stderr suddenly

You can try the following: In Ambari, see ...READ MORE

answered Mar 20, 2022 in Azure by Edureka
• 13,620 points
898 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
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