Hello. I have an Elasticsearch instance, storing objects that contain really large strings. I am trying to make a request to retrieve those objects from elasticsearch, but for whatever reason, elasticsearch will not return them.
Example Object In elasticsearch:
{
"time": "2022-11-17T15:36:34.000Z",
"status": "ok",
"data": "00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00"
}
The data property is a really long string, a lot longer then the example, the string can be as long as 5000 characters.
I attempt to retrieve those objects using a curl request to elasticsearch, like the example below:
curl http://es-instance:9200/myIndexPattern_*/_search?size=10000 -H "Content-Type: application/json" -d '{"size":10000,"query":{"bool":{"must":[{"range":{"time":{"from":"2022-11-17T14:35:32.000Z","to":"2022-11-17T15:35:39.000Z"}}}]}}}'
This results in 0 hits but I do know that there is data available at that time by looking through the kibana UI.
The actual response from the curl request is as follows:
{"took":0,"timed_out":false,"_shards":{"total":0,"successful":0,"skipped":0,"failed":0},"hits":{"total":{"value":0,"relation":"eq"},"max_score":0.0,"hits":[]}}
Upon further investigation I found that if the 'data' property in my stored object was smaller in size, then elasticsearch wouldn't have a problem returning those objects from my request.
My question is, is there some max size that an object in elasticsearch can be for it to return it when requested? Or is there some setting I can add to my request to retrieve these larger objects?
To make myself clear this is not a question of max amount of returned objects, but of max size of a single returned object.
Thank you.