Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Mihir Ajmera 32 posts 143 karma points
    Nov 26, 2019 @ 11:08
    Mihir Ajmera

    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.

    Thanks in Advance

  • Ismail Mayat 4511 posts 10062 karma points MVP 2x admin c-trib
    Nov 27, 2019 @ 10:42
    Ismail Mayat


    Highlighter has nothing todo with Umbraco is a 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 and you will need to see if something has changed there

Please Sign in or register to post replies

Write your reply to: