I am searching for a document by its “name” field. For example, I have two documents within my CosmosDB resource.
{
"name": "Carrot Cake",
....
}
and
{
"name": "Carrot something Cake",
....
}
Both name fields are searchable Edm.String types. I am using the default BM25Similarity and no scoring profiles are added within my index. For the name field, I am using the default standard.lucene analyzer.
When searching for the term "Carrot Cake"
(within the search explorer in the index on Azure) both of these results will show the same @search.score of 4.3356133
I want to be able to have the score for “Carrot Cake” be more than “Carrot something Cake” because the search term is found exactly, without the word “something” in the middle. Is this possible by adding a scoring profile or using a different similarity ranking?