lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego de Sena GuimarĂ£es <>
Subject Lucene Index Size growing
Date Mon, 04 Sep 2017 11:03:18 GMT
Hi guys, i'm having problems with my lucene index.

Once a day we do a full reindex.

This full index is coded like this..

delete all docs
optimize index
reindex all docs
optimize again
mayberefresh on searcher manager

*The problem is that everytime we do this, the index size is not returning
to its original size.* I know that during this process the index grows and
then should return to its original size.

I noticed that this happens after the app receives a bunch of queries.
I also noticed that the index shrinks when the app is restarted.

I was reading that we should call close on indexReader from time to time
but it's not working either

At the start of the application, the index is 383 MB, i do 500 queries and
then fire the full reindex. The index grows to 1.2GB and then shrinks to
766 MB. I was hoping it should return to its original size since the source
of the data (my Oracle table) has no changes

Here's my DAO class

Can you help me ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message