How can I get the size of a Solr document?

孤人 提交于 2019-12-12 10:56:02

问题


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.


回答1:


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 :

  • MAT usage ,
  • MAT .


来源:https://stackoverflow.com/questions/23660487/how-can-i-get-the-size-of-a-solr-document

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!