As per the new documenation, Azure are recommending you use the new BM25 similarity algorithm on newly created indexes in Azure search. See link here
https://docs.microsoft.com/en-us/azure/search/index-ranking-similarity
This is all very well for those who create the index manually via the Azure portal. But how do we add this via the C# azure search API? In the docs it shows a Json example
{
"name": "indexName",
"fields": [
{
"name": "id",
"type": "Edm.String",
"key": true
},
{
"name": "name",
"type": "Edm.String",
"searchable": true,
"analyzer": "en.lucene"
},
...
],
"similarity": {
"@odata.type": "#Microsoft.Azure.Search.BM25Similarity"
}
}
However, in the API there is no similarity object on the Index object? Any pointers of adding this would be appreciated. Especially as we can't update existing Indexes!!