I'm trying to get text fields length to calculate my response size. doc['filedname.subfield'].value only geting numeric fields. After Elasticsearc 5.x version we can use "params._souerce.fieldname.subfield" but this very slowly. For error should not occur while running, I using doc.containsKey('fieldname.subfield'). But doc.containsKey returning true and getting null pointer exception. doc.containsKey not working for nested fields.
Yes I can compute content lenth, but I need custom fields row data to build a csv file. If the collect data query range is to big, my file storage database has error. And I think compute result length for know result size and return user friendly response. My problem is, user can select custom fileds.
Extraction takes a long time. And I'm using pagination for extract. This is very costly compute. I want to know size length without extraction for disallow the request. My first question, doc.containsKey('field.subfield') why returning true for nested field, in current document 'field' is null?
I want to build csv file of documents includes custom feilds.
I have 1,500,000 document. And in elasticsearch in one time get query with size=1,500,000 proccess take a long time on elasticsearch. Some time server send timeout response.
We must use pagination with from size parameters and collect all pages data.
Documents including sensor datas. And we want to build cvs file of sensor datas. Sensor data contain nested complex json data. When user select custom field, I'm doing preRequest form service to learn output data. If output data is greater than my filedb limit, service disallow this export proccess.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.