Re: confused about an entry in the FAQ

2008-05-24 Thread Stephane Nicoll
On Sat, May 24, 2008 at 12:39 AM, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: > Hi Stephane > Can you tell me a bit more about the deadlocks you experience with Hibernate > Search. I have not seen such a situation so far and am interested to see how > to fix the problem. It is hard to externalize

Re: confused about an entry in the FAQ

2008-05-23 Thread Emmanuel Bernard
Hi Stephane Can you tell me a bit more about the deadlocks you experience with Hibernate Search. I have not seen such a situation so far and am interested to see how to fix the problem. Emmanuel On May 12, 2008, at 06:13, Stephane Nicoll wrote: Hibernate Search introduces deadlock with m

Re: confused about an entry in the FAQ

2008-05-15 Thread Otis Gospodnetic
ephane Nicoll <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Wednesday, May 14, 2008 2:38:25 AM > Subject: Re: confused about an entry in the FAQ > > ping. Sorry for the long email but I prefer to provide all information first. > > On Mon, May 12, 2008 at

Re: confused about an entry in the FAQ

2008-05-13 Thread Stephane Nicoll
ping. Sorry for the long email but I prefer to provide all information first. On Mon, May 12, 2008 at 12:13 PM, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > I tried all this and I am confused about the result. I am trying to > implement an hybrid query handler where I fetch the IDs from a > data

Re: confused about an entry in the FAQ

2008-05-12 Thread Stephane Nicoll
I tried all this and I am confused about the result. I am trying to implement an hybrid query handler where I fetch the IDs from a database criteria and the IDs from a full text lucene query and I intersect them to return the result to the user. The database query and the intersection works fine ev

Re: confused about an entry in the FAQ

2008-05-10 Thread Patrick Turcotte
Did you try the IndexSearcher.doc(int i, FieldSelector fieldSelector) method? Could be faster because Lucene don't have do "prepare" the whole document. Patrick On Sat, May 10, 2008 at 9:35 AM, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > From the FAQ: > > "Don't iterate over more hits than nee

Re: confused about an entry in the FAQ

2008-05-10 Thread Stéphane Nicoll
Sorry I don't get it. Do you have a sample code? Sent from my iPhone On 10 May 2008, at 17:43, "John Wang" <[EMAIL PROTECTED]> wrote: If your indexed field is not used to further filtering out the doc nor further scoring, you should use some sort of priority queueing mechanism to gather the

Re: confused about an entry in the FAQ

2008-05-10 Thread John Wang
If your indexed field is not used to further filtering out the doc nor further scoring, you should use some sort of priority queueing mechanism to gather the top N documents. You can then call reader.document() on those docs if necc. -John On Sat, May 10, 2008 at 6:35 AM, Stephane Nicoll <[EMAIL

confused about an entry in the FAQ

2008-05-10 Thread Stephane Nicoll
>From the FAQ: "Don't iterate over more hits than needed. Iterating over all hits is slow for two reasons. Firstly, the search() method that returns a Hits object re-executes the search internally when you need more than 100 hits. Solution: use the search method that takes a HitCollector instead."