Azure Search synonyms not reflecting in results -
the synonyms don't seem function in azure search
i updated synonyms map 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 examined synonymmap, 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, synonyms don't seem function. e.g results search on mike , michael not identical?
i understand preview feature, wanted on following
a) once defined synonyms, should not expect exact same results , search scores across synonym variations
b) can these synonyms apply @ column level (e. first name alone , not address)- or across document
c) if have large set of synonyms (over 1000)- lead performance impact?
i nate azure search. answer questions first :
a) yes, should. if "bill" , "williams" defined synonyms. searching on either should yield same result.
b) it's @ column level. use field/column property called 'synonymmaps' specify synonym maps use. please see "setting synonym map in index definition" in https://azure.microsoft.com/en-us/blog/azure-search-synonyms-public-preview/ more information.
c) mean on 1000 synonyms word? or 1000 synonym rule in synonym map? former impacts performance because search query expand 1000 of terms. in fact, can't define more 50 synonyms in rule. latter, 1000s of rules in synonym map shouldn't impact performance unless rules updated.
regarding comments synonyms don't function, based on questions, wondering if synonyms feature enabled in index definition. check , if doesn't function, feel free drop me email @ nateko@microsoft.com.
the extraneous new line characters see in retrieved synonym map may have been inserted http client using @ time of uploading. http clients, fiddler , postman example, insert new line character @ line ending automatically don't have yourself.
thanks,
nate
Comments
Post a Comment