小编use*_*138的帖子

Elasticsearch突出显示 - 无法正常工作

我有以下问题:

我正在做一些带有刻面的测试

我的脚本如下:

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)

elasticsearch

1
推荐指数
2
解决办法
6367
查看次数

标签 统计

elasticsearch ×1