lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhavin Pandya" <bhav...@rediff.co.in>
Subject Re: Controlling index file name
Date Thu, 03 Apr 2008 12:57:33 GMT
I also faced same problem in past.
But in my case the index size was not the issue so i maintained two folder 
"newindex" and "oldindex"... and swaping at every update.

-Bhavin pandya

----- Original Message ----- 
From: "021336" <smith_brad@bah.com>
To: <java-user@lucene.apache.org>
Sent: Tuesday, April 01, 2008 9:44 PM
Subject: Controlling index file name


>
> We use Lucene to create simple data stores that we deploy with our
> application.  Our application also supports auto-updating and we refresh
> these data stores monthly.  Since Lucene computes the names for the index 
> we
> end up deploying new files each time while leaving the old files to 
> continue
> taking up space needlessly.
>
> The options I see to resolve this are:
> - After each update check all the data store locations and delete CFS 
> files
> that have a date earlier then the Segments files, or
> - Create the index files with a consistent name so that we overwrite
> existing files with new files during each auto-update.
>
> I found one thread discussing this using "AddIndexes" but I could not 
> follow
> it through to implementation.  Also, we are using Java 1.4 not 1.5.
>
> Any suggestions?
>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Controlling-index-file-name-tp16418709p16418709.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
> 


---------------------------------------------------------------------
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