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 in Azure by Edureka
• 5,960 points
57 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 by Edureka
• 5,960 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 in Azure by Edureka
• 5,960 points
145 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 in Azure by Edureka
• 5,660 points
29 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 in Azure by Edureka
• 5,660 points
21 views
0 votes
1 answer

enable azure search synonyms

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

answered Mar 1 in Azure by Edureka
• 5,660 points
22 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 in Azure by Edureka
• 5,660 points
40 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP