harshu288
harshu288

Reputation: 151

Azure search highlights for phrases with double quotes

We have a azure web application where in there is one search box, when we enter text with double quotes like "App Service" it correctly list records with "App service" however it not only highlights "App Service" but it also highlights "App" as well "Service" if they are found individually, what can be done so that only "App service" is highlighted this will not create chaos among the users.

Upvotes: 3

Views: 863

Answers (1)

Yahnoosh
Yahnoosh

Reputation: 1972

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. Unfortunately there is no way to customize this behavior at the moment. I realize this could be confusing to your users.

Please use our UserVoice page to vote for changing the current behavior.

Upvotes: 5

Related Questions