I would like to know the size in bytes of individual Solr documents/responses. Is there a straightforward way to figure this out?
We are using the solrj java client.
I've looked around and have only found ways to determine the size of the index, but nothing on the size of the documents themselves.
the size and the document of solr are composed of both : - indexes compressed - files compressed
A easy way to know the size of you solr core / node is to get in solr admin
So in my case we have : 2993 document for 5,41 MB = an average of 1,8KB / document including the index / and the stored fields.
There is also another way if you are more geeky and love to code : how to get the Index Size in solr
UPDATE THE 5/06/2014 :
Hehe, I've found something that sound good : [ MAT tool3
You can lookup the lru cache in order to understand the memory used (and the space used by a specific doc). By running a get of the ID, you will have the ID retrieved and the memory taken by the ID on HDD/RAM! :)
See this great article :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With