The same here, even with trunk from yesterday. If you create a field, it stays there forever, even after deleting *all* documents from index, reindexing without the field and optimizing.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Chris Hostetter [mailto:hossman_luc...@fucit.org] > Sent: Friday, July 17, 2009 12:39 AM > To: java-user@lucene.apache.org > Subject: Re: How to get rid of unused fields? > > > : After deleting documents from the index it can happen that fields become > : unused (i.e. no document has this field anymore). And > : IndexReader.getFieldNames() still returns these unused fields, even > : after optimizing the index. Is there any chance to get rid of these > : unused fields? > > that's odd ... i'm 99% sure that should work (optimizng should perge > unused fields). > > what version of Lucene are you using? (if you're on the trunk it might be > a bug introduced recently with some of the indexing changes) > > Can you post some test code demonstrating the problem? > > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org