How to Customize Hit Highlighting

To keep all the text value for highlighting properties requested, an extra manual hit highlighting processing is done.

If you search for "Test", Elastic returns only "PropertyValue2 Test".

In this case we do an extra manual highlighting in order to return "PropertyValue;PropertyValue2 Test;".

This extra manual highlighting processing, can be disabled using a Query Script Processing stage.

How to Disable Manual Highlighting Processing

  1. Navigate to the administration page of SmartHub.

  2. From the "Query Pipeline Stages" section click the buttonAdd New Query Stage.

  3. In the modal window that appears do the following:
    1. From the drop-down list select"Query Scripting Processor".
    2. In theNamefield enter a name for this pipeline stage Pipeline stages offer uniformity to the end user. Various functions include mapping names and values to match local refinements..
    3. In theScriptsection enter your script.

      1. Query.SkipManualHighlighting = true;
    4. Click theCompilebutton to make sure that you don't have any errors.

    5. Click Save.

Note: Manual Highlighting is supported only by Elastic search engine.