s.grinovero wrote:
Hi,
Quote:
The result is limited to 20 results in my test.
Do you mean the combined result, or are you limiting both lucene's index results and database results?
Quote:
MyClass a where ID in (2,4,6,7...)
The complexity of such a query could grow without control and is not recommended...
use it only if you are sure that both sub-results are very limited.
I explained a better approach to this type of search here:
http://forum.hibernate.org/viewtopic.php?t=986180
Yes I know, I am the one who asked the question :)
The combine result is limited. The lucene search and the database search are not (and that's most probably the problem)
So I use a ScrollableResultset and I fetch only the primary key from the database. I am wondering though what you mean by "adding them all to a set". This solution may consume a lot of memory no?
Can you maybe explain in more details the algorithm?
Any idea regarding the deadlock on SegmentReader?
Thx,
Stéphane