Common Search Result Hightlight Search Keyword or Term in Umbraco 8.1.4
Hello All,
I implementing the common content search result in the Umbraco 8.1.4 but I can`t highlight search keyword in the result because Umbraco 8 deprecated the HightLighter method just like use in Umbraco 7 as mention below sample code.
var highlighter = new Highlighter(formatter, FragmentScorer(searchQuery, highlightField, LuceneIndex));
Can anyone have any idea or proper example of how to implement a Highlight search keyword or term in the Umbraco 8.1.4?
It more priority to implement this functionality so anyone has an idea then give quick solution as soon as possible.
Common Search Result Hightlight Search Keyword or Term in Umbraco 8.1.4
Hello All,
I implementing the common content search result in the Umbraco 8.1.4 but I can`t highlight search keyword in the result because Umbraco 8 deprecated the HightLighter method just like use in Umbraco 7 as mention below sample code.
Can anyone have any idea or proper example of how to implement a Highlight search keyword or term in the Umbraco 8.1.4?
It more priority to implement this functionality so anyone has an idea then give quick solution as soon as possible.
Thanks in Advance
Mihir,
Highlighter has nothing todo with Umbraco is a lucene.net contrib project. In v8 we have gone from lucene 2.9.4 to lucene 3.0.3, highlighter would need to upgrading to use 3.0.3 version as well. And I suspect maybe something has changed there in how to use. See https://lucenenet.apache.org/docs/3.0.3/files.html and https://lucenenet.apache.org/docs/3.0.3/dir_65044b083e4dd72dcfe0705fe45ee371.html you will need to see if something has changed there
is working on a reply...