1

I am creating a synonym map like below,

{ "name": "country-synonym",
 "format":"solr",
 "synonyms": "germany, dl, deutschland\n 
 india, ind"
}

But when I queried the synonym to view it, it was created like below, instead of two rules, only one rule was created.

{
"@odata.context": "https://#############.search.windows.net/$metadata#synonymmaps/$entity",
"@odata.etag": "###########",
"name": "country-synonym",
"format": "solr",
"synonyms": "germany, dl, deutschland india, ind",
"encryptionKey": null
}

What am I doing wrong?

  • 1
    Although it looks like it is creating only one rule, search works perfect for the two rules. So I guess, the response is a bit badly constructed – Mary Reni Rajaian Mar 03 '20 at 17:23

1 Answers1

0

You answered it correctly in your comment. The search is working correctly, meaning the search terms were posted to the API correctly. The problem is the browser collapsing the newline. Try to look at the raw response in the Inspector & you should see the newline.

nevelis
  • 736
  • 6
  • 17