What fields do you have and what are you putting in them?
On Thu, 2005-03-10 at 17:56 +0530, Karthik N S wrote: > Hi Guys > > Apologies....... > > > I ditto as u said but the SpanNearQuery is > > returning me all the 3 documents containing for rollover of words > > 'DIGITAL CAMERAS' instead of returning me the 1st doc, Or none by changing > the slop factor > > Any more ideas Please do .......... B( > > with regards > karthik > > > -----Original Message----- > From: Miles Barr [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 10, 2005 2:53 PM > To: java-user@lucene.apache.org > Subject: RE: SPAN QUERY [HOW TO] > > > On Thu, 2005-03-10 at 12:02 +0530, Karthik N S wrote: > > U got it bingo,Am trying to do something similar as u replied. > > But there is a glitch in the process > > > > If the search is done on the 'leaf_category' as u said > > > > with word such as 'CAMERA DIGITAL' instead of 'DIGITAL CAMERA' the > > resultant > > > > return hits will be ZERO '0'. Usage of SpanQuery for such conditions > > applied should return still > > > > the 1st document of 3. > > > > A permutation combination of words entered should result in the specific > > document being returned. > > If depends what the type of leaf_category is. If you made it Keyword as > I suggested then it won't be tokenized. i.e. there's one token 'DIGITAL > CAMERA' instead of the two tokens you normally get, 'digital' and > 'camera'. > > If you change the field type to Text you should be able to use a > SpanNearQuery to do your search. > > -- > Miles Barr <[EMAIL PROTECTED]> > Runtime Collective Ltd. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Miles Barr <[EMAIL PROTECTED]> Runtime Collective Ltd. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]