RE: Need help : SpanNearQuery

2009-04-17 Thread Radhalakshmi Sreedharan
weight value would also be useful in other cases, for example to allow different weights in SpanTermQuery. Regards, Paul Elschot On Friday 17 April 2009 12:18:46 Radhalakshmi Sreedharan wrote: > To make the question simple, > > What I need is the following : > If my document field is (

RE: Need help : SpanNearQuery

2009-04-17 Thread Radhalakshmi Sreedharan
nfact reduces my percentage. I even overrode the queryNorm method to return a one, still the percentage did not increase. Any suggestions ? -Original Message- From: Radhalakshmi Sreedharan [mailto:radhalakshm...@infosys.com] Sent: Friday, April 17, 2009 12:37 PM To: java-user@lucene.apach

RE: Need help : SpanNearQuery

2009-04-17 Thread Radhalakshmi Sreedharan
Hi Steven, Thanks for your reply. I tried out your approach and the problem got solved to an extent but still it remains. The problem is the score reduces quite a bit even now as bc is not found in the combinations ( bc,cd) ( bc,ef) and ( ab,bc,cd,ef) etc. The boosting infact has a negative

Need help : SpanNearQuery

2009-04-16 Thread Radhalakshmi Sreedharan
Hi , I have a question related to SpanNearQuery. As of now, the SpanNearQuery has the constraint that all the terms need to present in the document. Eg : If my SpanNearQuery terms are ( ab,bc,cd) all of them need to be found within a span of "n" and unordered. But my requirement is similar t