Hi guys, recently we upgraded to ElasticSearch 2.2 and we startred to use the Elasticsearch.js library for Angular.
Right now I can execute all my old queries but the Highlight is not returned anymore.
This is how I call a query where the term "pippo" has to be searched across all indexes and all fields:
$esClient
.search({
index: 'myIndex',
"size": $scope.header.recordsPerPage,
"from": $scope.header.currentPage * $scope.header.recordsPerPage,
body: {
"query": {
"filtered": {
"query": {
"match": {
"_all": $scope.options.criteria
}
}
}
},
"highlight": {
"fields": {
"*": {}
}
}
}
})
The resultset does not contains the highlight anymore and no errors are returned. Am I doing something wrong here?