"total" holds the total number of documents that match the query, not the size in bytes. I am not aware of a straightforward way to get the size in bytes of all the results for a specific query, unless you are willing to scroll over all your results.
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.