hit-highlighting

Hit Highlighting in Azure Search Service

天大地大妈咪最大 提交于 2020-01-14 08:50:37
问题 I am new to Azure Search Service, and I wanted to use the hit highlighting feature of Azure Search Service. I am using the .NET SDK NuGet package for azure search. I used SearchParameter object to mention the hit highlight fields and also the Pre and Post Tag that I require. searchParameters.HighlightFields = new[] { "Description"}; searchParameters.HighlightPreTag = "<b>"; searchParameters.HighlightPostTag = "</b>"; _searchIndexClient.Documents.Search(searchText, searchParameters); I am

Azure search hit-highlighting and match delimiter

时光总嘲笑我的痴心妄想 提交于 2019-12-13 20:26:15
问题 I am using hit-highlighting in azure search. It works fine but I want to fine tune it a bit. Say, a field has the following value: "It uses period as the delimiter. If not, please clarify" If I search for "please" I will get a highlight hit on that field, e.g.: "If not, <em> please </em> clarify" If I search for "period" I will get a highlight hit on that field, e.g.: "It uses <em> period </em> as the delimiter." After trying it with several examples it seems that it uses period (".") as a

Will SQL Server 2012 FTS have native support for hit highlighting? [closed]

天涯浪子 提交于 2019-12-11 05:41:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Sql Server 2008 does not natively support hit highlighting in its FTS functionality, and currently you must implement yourself using a variety of techniques. Microsoft has made some vague noises about including it in future SQL Server releases. Does anyone know if SQL Server 2012 FTS will have native support for

lucene get matched terms in query

萝らか妹 提交于 2019-11-28 14:08:11
What is the best way to find out which terms in a query matched against a given document returned as a hit in lucene? I have tried a weird method involving hit highlighting package in lucene contrib and also a method that searches for every word in the query against the top most document ("docId: xy AND description: each_word_in_query"). Do not get satisfactory results? Hit highlighting does not report some of the words that matched for a document other than the first one. I'm not sure if the second approach is the best alternative. The method explain in the Searcher is a nice way to see which

How to do hit-highlighting of results from a SQL Server full-text query

邮差的信 提交于 2019-11-28 10:12:37
We have a web application that uses SQL Server 2008 as the database. Our users are able to do full-text searches on particular columns in the database. SQL Server's full-text functionality does not seem to provide support for hit highlighting. Do we need to build this ourselves or is there perhaps some library or knowledge around on how to do this? BTW the application is written in C# so a .Net solution would be ideal but not necessary as we could translate. Expanding on Ishmael's idea, it's not the final solution, but I think it's a good way to start. Firstly we need to get the list of words

using hit highlighter in lucene

萝らか妹 提交于 2019-11-27 22:36:53
I have two questions regarding hit highlighter provided with apache lucene: see this function could you explain the use of token stream parameter. I have several large lucene document containing many fields and each field has some strings in it. Now I have found the most relevant document for a particular query. Now this document was found because several words in the query might have matched with the words in the document. I want to find out what words in the query caused this. So for this I plan to use Lucene Hit Highlighter. Example: if the query is "skin doctor delhi" and the document

lucene get matched terms in query

丶灬走出姿态 提交于 2019-11-27 19:32:34
问题 What is the best way to find out which terms in a query matched against a given document returned as a hit in lucene? I have tried a weird method involving hit highlighting package in lucene contrib and also a method that searches for every word in the query against the top most document ("docId: xy AND description: each_word_in_query"). Do not get satisfactory results? Hit highlighting does not report some of the words that matched for a document other than the first one. I'm not sure if the

How to do hit-highlighting of results from a SQL Server full-text query

天大地大妈咪最大 提交于 2019-11-27 03:27:21
问题 We have a web application that uses SQL Server 2008 as the database. Our users are able to do full-text searches on particular columns in the database. SQL Server's full-text functionality does not seem to provide support for hit highlighting. Do we need to build this ourselves or is there perhaps some library or knowledge around on how to do this? BTW the application is written in C# so a .Net solution would be ideal but not necessary as we could translate. 回答1: Expanding on Ishmael's idea,

using hit highlighter in lucene

最后都变了- 提交于 2019-11-26 23:11:17
问题 I have two questions regarding hit highlighter provided with apache lucene: see this function could you explain the use of token stream parameter. I have several large lucene document containing many fields and each field has some strings in it. Now I have found the most relevant document for a particular query. Now this document was found because several words in the query might have matched with the words in the document. I want to find out what words in the query caused this. So for this I