0

I have noticed that when performing a phrase search with double quotes, azure Search return appropriate search results but it highlights each individual word in the phrase. For example when we do phrase search on “data scientist” it highlights “Data” and "Scientist" as well ideally it should have highlighted just “data scientist”.

Is this the default behavior of Azure Search and is there any way to alter it.

Yahnoosh
  • 1,932
  • 1
  • 11
  • 13
Shafi
  • 1

1 Answers1

0

Is this the default behavior of Azure Search and is there any way to alter it.

Unfortunately there is no way to customize this behavior at the moment. In Azure Search we use Lucene's Postings Highlighter. This highlighter ignores positions of terms that matched, that's why you see all phrase terms highlighted independently.

You could refer to the similar SO thread.

If you want to promote this feature to achieve you could go to feedback page and vote for it.

Joey Cai
  • 18,968
  • 1
  • 20
  • 30