我有以下问题:
我正在做一些带有刻面的测试
我的脚本如下:
https://gist.github.com/nayelisantacruz/6610862
我得到的结果如下:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": []
},
"facets": {
"title": {
"_type": "terms",
"missing": 0,
"total": 2,
"other": 0,
"terms": [
{
"term": "JavaScript",
"count": 1
},
{
"term": "Java Platform, Standard Edition",
"count": 1
}
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
这很好,但问题是我无法显示"突出显示"
我期待如下结果:
.......... .......... ..........
"facets": {
"title": {
"_type": "terms",
"missing": 0,
"total": 2,
"other": 0,
"terms": [ …Run Code Online (Sandbox Code Playgroud)