lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: When do files in 'deleteable' get deleted?
Date Tue, 14 Feb 2006 01:44:40 GMT

: That gets things into the 'deleteable' file - but its never actually
: deleting all of the files from the deleteable file.  I'm almost always
: ending up with at least 1 duplicate copy of my index.

I think it only tries to delete the files listed in deletable prior to
trying to delete any other fields it needs to delete.  It might make sense
for there to be an optional way to "suggest" that now would be a good time
to try. ... you could submit a patch that adds a public method for doing
this to IndexWriter, i think it just needs to look like this...

    public void suggestDeleteDeletable() {
      Vector deletable = new Vector();
      deleteFiles(readDeleteableFiles(), deletable);

I *think* if you call IndexWriter.addIndexes(new IndexReader[] { }) it
will force this behavior without needing a patch ... but that is
definitely a hack.

(I haven't tried any ofthis, I'm just guessing based on a quick code skim)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message