Re: Use of explain() vs search()

2004-09-12 Thread Minh Kama Yie
Thanks for the reply Erik. Sorry about the lateness of this reply; I was out of the office last week and it took me a bit to create a stand alone test case today. I should prefix my statements by saying that I've discovered the problem I'm having is with 1.3, and it appears fixed in 1.4. I also

Re: Use of explain() vs search()

2004-09-08 Thread Erik Hatcher
Could you create a simple piece of code (using a RAMDirectory) that demonstrates this issue? Erik On Sep 8, 2004, at 12:35 AM, Minh Kama Yie wrote: Hi all, Sorry I should clarify my last point. The search() would return no hits, but the explain() using the apparently invalid docId return

Re: Use of explain() vs search()

2004-09-07 Thread Minh Kama Yie
Hi all, Sorry I should clarify my last point. The search() would return no hits, but the explain() using the apparently invalid docId returns a value greater than 0. For what it's worth it's performing a PhraseQuery. Thanks in advance, Minh Minh Kama Yie wrote: Hi all, I was wondering if anyone c

Use of explain() vs search()

2004-09-07 Thread Minh Kama Yie
Hi all, I was wondering if anyone could tell me what the expected behaviour is for calling an explain() without calling a search() first on a particular query. Would it effectively do a search and then I can examine the Explanation in order to check whether it matches? I'm currently looking at