I've got a sizeable Solr server which is chewing a pile of disk. Whilst it is indexing a large amount of data, I'm wondering if there's any operation that will reduce the size of the index, by say dropping deleted-but-still-allocated data in a similar manner to a VACUUM FULL in PostgreSQL, or are the solr indexes kept fairly tidy, and my only option is to just allocate a pile more diskspace?


To my knowledge solr keeps its indexes fairly tidy. Are you deleting items from the index very often or only adding? If all you are doing is adding then you aren't even causing fragmentation... which is a good thing in your case since defragmenting a solr index (or optimizing it) causes the index to double in size while that process runs, which would probably be the opposite of what you're looking for. How much disk space are you chewing up right now?

  • There is some deletion going on, but I couldn't give you a ratio of deleted-to-not-deleted. There's somewhere around 22GB of indexes at present. – womble Dec 16 '09 at 7:03
  • @DaveHolland: So are you saying that running a request to http://localhost:8080/solr/update?optimize=true doubles while optimizing, but when before/after results are compared, won’t the optimized index be smaller? – JakeGould Jan 29 '13 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.