Maximum number of inputs in filter section terms

GET example3/_search?size=0
{
"query": {
"bool": {
"filter": [
{
"terms":
{
"userId": [ 199196,199195 ] }}
]
}
},
"aggs": {
"top-tags": {
"terms": {
"field": "userId",
"size": 10
},
"aggs": {
"to-answers": {
"children": {
"type" : "readership"
},
"aggs": {
"top-names": {
"terms": {
"field": "accountId",
"size": 10
},
"aggs": {
"Uniqueclicks": {
"value_count": {
"field": "clicks"
}
},
"uniqueContact": {
"value_count": {
"field": "contactId"
}
},
"hitrate": {
"bucket_script": {
"buckets_path": {
"my_var1": "Uniqueclicks",
"my_var2":"uniqueContact"
},
"script": "params.my_var1/params.my_var2 * 100"
}
},
"hitrate_sort": {
"bucket_sort": {
"sort": [
{ "hitrate": { "order": "asc" } }
],
"size": 2
}
}

  }
        }
      }
    }
  }
}

}
}

In filter section for userid i have given 2 userids. In real time user ids could be 100 to 1000. can i pass 1000 userid separated by comma .like this
"userId": [ 199196,199195,......... till 1000 ids ]. Does ES support this.

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

The default limit is 1024 - Search settings | Elasticsearch Guide [7.14] | Elastic

sure. thanks mark

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.