lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Orpahned segments that cannot be force merged
Date Fri, 10 Jun 2016 09:18:44 GMT


Hi they are not orphans, they are just used still by the index reader. The operating system
prevents them from being deleted as long as an index reader is open on them. Once you are
done with forceMerging, you have to reopen your index reader (e.g., using SearcherManager).
The files will disappear after a while.





Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen <> 



From: Slav Boleslawski [] 
Sent: Friday, June 10, 2016 11:11 AM
Subject: Orpahned segments that cannot be force merged




I can control the number of index segments when indexing using forceMerge(), but when searching
occurs during indexing, then some segments become orphans and cannot be force merged. Why?Could
someone please have a look if I'm doing anything wrong.


I attach the complete code for a test case to show the problem. The details are in the code





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