Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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?

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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