Azure search highlights for phrases with double quotes

寵の児 提交于 2019-12-01 06:05:11

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/42411353/azure-search-highlights-for-phrases-with-double-quotes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!