I want to use query DSL to query data against elasticsearch, the request like following:
GET /index_test/_search
{"size":5000,"timeout":"500ms","query":{"range":{"@timestamp":{"from":1530768660540,"to":1530769620540,"include_lower":true,"include_upper":true,"boost":1.0}}},"post_filter":{"bool":{"must":[{"terms":{"testField1":["testvalue1","testvalue2"],"boost":1.0}},{"exists":{"field":"testField2","boost":1.0}},{"terms":{"testId":["ID1","ID2"],"boost":1.0}}],"adjust_pure_negative":true,"boost":1.0}},"sort":[{"@timestamp":{"order":"desc"}}]}
For the testId filed, I will using a long items to match . So I need to add a lot of values in the terms.
like this:
{"terms":{"testId":["ID1","ID2","ID3","ID4","ID5".........],"boost":1.0}}
So I want to know how many values I can add for the values of testId.
And so I need to know how long the query length in the request body?