Hi,all:
I'm using elasticsearch for the top 10 with count 500 item,But not valid.

would be glad to let me know if you have any knowledge about this, thanks.

{
            "facets": {
              "terms": {
                "terms": {
                  "field": "agent",
                  "size": 10,
                  "order": "count",
                  "exclude": []
                },
                "facet_filter": {
                  "fquery": {
                    "query": {
                      "filtered": {
                        "query": {
                          "bool": {
                            "should": [
                              {
                                "query_string": {
                                  "query": "*"
                                }
                              }
                            ]
                          }
                        },
                        "filter": {
                          "bool": {
                            "must": [
                              {
                                "range": {
                                  "@timestamp": {
                                    "from": null,
                                    "to": null
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "size": 500
          }
Thanks,
Terry

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/323259fa-7105-42e5-af34-a20add209395%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to