我有以下问题:
我正在用刻面做一些测试
我的脚本如下:
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
}
]
}
}
}
这很好,但问题是我无法显示“突出显示”
我期待的结果如下:
………………………………
"facets": {
"title": {
"_type": "terms",
"missing": 0,
"total": 2,
"other": 0,
"terms": [
{
"term": "<b>Java</b>Script",
"count": 1
},
{
"term": "<b>Java</b> Platform, Standard Edition",
"count": 1
}
]
}
}
………………………………
任何人都可以帮助我并告诉我我做错了什么或我错过了什么,请
非常感谢您的关注