lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaime <j.par...@estructure.es>
Subject Re: Reduce index size without reopening IndexWriter
Date Wed, 13 Jul 2016 11:13:38 GMT
Fixed, thank you very much!


El 12/07/2016 a las 17:02, Adrien Grand escribió:
> A likely cause to this problem is that you are leaking index readers. You
> should review your application code in order to make sure that every
> near-realtime reader that is acquired is eventually closed.
>
> Le lun. 11 juil. 2016 à 13:46, Jaime <j.pardos@estructure.es> a écrit :
>
>> I use Lucene 6.1.0 (no solr) with NRT search. At runtime, my index seems
>> to grow a lot.
>>
>> I think that for each commit, a new copy of the index is made. This
>> makes sense as an old searcher could be using the previous version.
>> However, the old copies don't seem to be erased until I close and reopen
>> the Index Writer.
>>
>> I've tried calling IndexWriter.deleteUnusedFiles after each commit, but
>> didn't help.
>>
>> Is there any way to free space without closing the IndexWriter?

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


Mime
View raw message