It depends on your definition of "clean" but Emmanuel is correct. When I worked with highly dynamic data (meaning many segments over a short period of time ) the IW would do a segment merge whenever the merge threshold was reached. The Lucene document numbers would obviously change and If there were documents marked as deleted, those segments would be removed but there was no optimization performed just a merge.<br>
<br>Hope this helps.<br><br>JohnG<br><br><div class="gmail_quote">2009/9/23 Emmanuel Bernard <span dir="ltr"><<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On 23 sept. 09, at 14:58, Łukasz Moreń wrote:<br>
<br>
> Is it because, the IndexWriter only clean files if no indexReaders<br>
> are reading them (how would that be detected)?<br>
> It can happen if IndexWriter clean file, and IndexReader try to<br>
> access that cleaned file.<br>
<br>
</div>IndexWriter doe snot clean files AFAIK (unless you optimize I think<br>
but that's another story).<br>
_______________________________________________<br>
hibernate-dev mailing list<br>
<a href="mailto:hibernate-dev@lists.jboss.org">hibernate-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>John Griffin<br>Senior Software Engineer<br>Overstock.com<br><br><a href="http://thediningphilosopher.blogspot.com/">http://thediningphilosopher.blogspot.com/</a><br>Hibernate Search in Action (<a href="http://www.manning.com/bernard/">http://www.manning.com/bernard/</a>)<br>
__________________________________<br>Refactoring is NOT a substitute for design.<br><br><br><br><br>