How can i use scroll api when i use "terms_stats"


(이지홍) #1

thanks you for read my post..

  1. i use terms_stats
    curl -XPOSThttp://10.32.240.15:21200/jp_listened_log/2014-02/_search -d '
    {
    "query": {
    "match_all": {}
    },
    "facets": {
    "tag_price_stats": {
    "terms_stats": {
    "key_field": "uniquePlayId",
    "value_field": "scrubberPosition"
    }
    }
    }
    }
    '
    i don't need hits data
    only need facets elements data..
    how can i requst api?
    _search/search_type=count ?

  2. second qustion
    i want to use scroll with terms_stats..
    how can i use terms_stats+scroll(pagination or scroll)?

plz someone help me


(system) #2