angularjselasticsearchelasticui

How to highlight search results with elasticui?


I made a simple interface to display application logs using elasticui, I'd like to highlight the results to show what was matching

I tried to add this in my controller:

$scope.$watch('ejs', function(ejs) {
    if (ejs !== undefined) {
        ejs.Highlight(['msg']);
    };
});

but it does not work (the request payload don't include the highlight part)

how should I proceed?


Solution

  • ElasticUI now supports highlighting