disablehighlight

Type: boolean
Default: false
Context: prediction, search

About this parameter

When answers are rendered, the link to the page normally has the text from which the answer is taken highlighted. By setting data-disablehighlight to true, this highlighting will be disabled.

Usage examples

In a prediction:

<div class="rek-prediction" data-disablehighlight="true"></div>

And in autocomplete:

__rekai.ready(function() {
var rekAutocomplete = rekai_autocomplete('#searchform input', {
    params: {
      disablehighlight: true
    }
  }).on('rekai_autocomplete:selected', function (event, suggestion, dataset) {
    window.location = suggestion.url;
});
});