Search keyword highlight in ASP.Net

后端 未结 4 424
悲哀的现实
悲哀的现实 2021-02-04 17:23

I am outputting a list of search results for a given string of keywords, and I want any matching keywords in my search results to be highlighted. Each word should be wrapped in

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 17:36

    try highlighter from Lucene.net

    http://incubator.apache.org/lucene.net/docs/2.0/Highlighter.Net/Lucene.Net.Highlight.html

    How to use:

    http://davidpodhola.blogspot.com/2008/02/how-to-highlight-phrase-on-results-from.html

    EDIT: As long as Lucene.net highlighter is not suitable here new link:

    http://mhinze.com/archive/search-term-highlighter-httpmodule/

提交回复
热议问题