Hi Sanne,<br><br>When I create a LazyIterator, every node makes a local normal query and thern I return the TopDocs to the requester node. With TopDocs I can merge the results and maintain them ordered. I&#39;m using the idea behind<br>


org.apache.lucene.search.ParallelMultiSearcher.search(Weight, Filter, int, Sort).<br><br><br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We could make the classes<br>
org.hibernate.search.query.engine.impl.HSQueryImpl<br>
org.hibernate.search.query.engine.impl.QueryHits<br>
suitable for being extended (changing most private methods to<br>
protected, and also refactor the HSQueryImpl to possibly use a<br>
different type for QueryHits)<br></blockquote><div><br>As I see now, I don&#39;t need changes in QueryHits. The current 
implementation has a getTopDocs() that solves my problem. On 
HSQueryImpl, I need the QueryHits that could be created by <i>HSQueryImpl.getQueryHits( </i><i>buildSearcher()</i><i>, calculateTopDocsRetrievalSize()).</i> So, changing these three methods to protected or creating a getQueryHits() that hides them, would solve my problem.<i><br>




</i><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
and then making sure that it&#39;s possible to have<br>
org.hibernate.search.spi.SearchFactoryIntegrator.createHSQuery()<br>
return a custom type.<br></blockquote><div><br>This could be a little hard, no? I don&#39;t wanna create problems to you!<br><br>If you can&#39;t make these changes, I can find another way. I just want to create a query and get the TopDocs. This could be done in another way, probably writing more code....<br>




<br>And yes, I have the source code!<br><br>Let me know what you think. <br><br>Thanks!<br><br>Israel<br></div></div>