Hi, Be sure to close the IndexWriter and all open IndexReaders on the same index! Merged files may not be deleted before that is done.
Uwe ----- Uwe Schindler Achterdiek 19, D-28357 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: work.gmail [mailto:leowang.w...@gmail.com] > Sent: Wednesday, October 11, 2017 7:41 PM > To: java-user@lucene.apache.org; d...@lucene.apache.org; > gene...@lucene.apache.org > Subject: a topic of deleting the specified segments > > Hey all > > My team met a special Lucene problem right now, and we did not find an > efficient way to solve it by far. So I come here to ask Lucene experts. > Our problem background is: > We have one index folder, it includes 3 segments (_1.si <http://1.si/>, _2.si > <http://2.si/>, _3.si <http://3.si/>), and we try to merge (_2.si > <http://2.si/> > and _3.si <http://3.si/>) into one single segment (_4.si <http://4.si/>), and > remove old (_2.si <http://2.si/> and _3.si <http://3.si/>). so finally we only > have two segments (_1.si <http://1.si/> and _4.si <http://4.si/>), we are > trying to use merge policy to merge the (_2.si <http://2.si/> and _3.si > <http://3.si/>), we got (_4.si <http://4.si/>), but (_2.si <http://2.si/> and > _3.si > <http://3.si/>) are still there, we don’t find a way to remove them. > So could you guys help to give a resolution to remove old segments after > customer’s merging? > > Your any feedback is very appreciated! > > thanks > Leo --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org