You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by yi...@indiana.edu on 2004/12/16 19:18:02 UTC

Disk space needed for indexing???


Hi, everyone,

Does anyone have any idea how much disk space will be needed for
generating the final index with ~1.5G size, for example?

I have ~3.5G disk space and is able to generate index with 1G size.
However, after I add more records, it will run out of disk space. Does
Lucene suppose to take so much disk space for indexing? Is there any way
that I can improve the code to let it take less space?


Thanks,
Ying

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Disk space needed for indexing???

Posted by Otis Gospodnetic <ot...@yahoo.com>.
The exact disk space usage depends on the number of fields in the index
and on how many of them store the original text.  You should also keep
in mind that the call to IndexWriter's optimize() will result in your
index directory size doubling while the optimization is in progress, so
if you want to optimize you will need extra free disk space.

Otis


--- yingjin@indiana.edu wrote:

> 
> 
> Hi, everyone,
> 
> Does anyone have any idea how much disk space will be needed for
> generating the final index with ~1.5G size, for example?
> 
> I have ~3.5G disk space and is able to generate index with 1G size.
> However, after I add more records, it will run out of disk space.
> Does
> Lucene suppose to take so much disk space for indexing? Is there any
> way
> that I can improve the code to let it take less space?
> 
> 
> Thanks,
> Ying
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org