0
我目前正在为AngularJS使用Elasticsearch的前端。搜索查询工作得很好,希望从高亮度。Elasticsearch与AngularJS的高亮度
在我service.js我已经把我的搜索查询,看起来像:
client.search({
"index": "index_name",
"type": "index_type",
"body": {
"size": 10,
"from": offset,
"query": {
"query_string": {
"query": query
}
},
"highlight" : {
"fields" : {
"*" : {}
}
}
}
}).then(function(result) {...}
我检查了JSON在我的Chrome,但没有现场亮点(因为它应该是)
在Kibana我测试了此查询强调:
GET /_search {
"query" : {
"match": { "message": "test" }
},
"highlight" : {
"fields" : {
"*" : {}
}
}
}
,我得到的结果+ hightlighting
任何建议,感谢