Hi Guys

Is there a way around for which the query parser would  have something like
this

   (+digital +camera +optics) -(All other Default variables)

But a run time Once cannot determine the default values.

I am stuck in between for this cause ........  :(D

-----Original Message-----
From: sergiu gordea [mailto:[EMAIL PROTECTED]
Sent: Monday, March 14, 2005 3:49 PM
To: java-user@lucene.apache.org
Subject: Re: SPECIFIC HIT


Karthik N S wrote:

> **
>
> *Hi  Guys*
>
> *Apologies...........*
>
> *I have Indexed documents sucessfully and they would be
>
> **Document 1 contains   =  ELECTRONICS  DIGITAL CAMERA
> ***Document 2 contains   =  ELECTRONICS  DIGITAL CAMERA BATTERY
> ACCESSORIES*
> *Document 3 contains*   =  ELECTRONICS  DIGITAL CAMERA 0PTICS
> *Document 4 contains*  =   ELECTRONICS  DIGITAL CAMERA ACCESSORIES
> *
>
> **Document 5 contains*  =   ELECTRONICS  DIGITAL CAMERA CABEL ACCESSORIES
> ***Document 6 contains*  =   ELECTRONICS  DIGITAL CAMERA OPTICS CABEL
> ACCESSORIES
> *Document 7 contains*  =   ELECTRONICS  DIGITAL CAMERA APPERAL
> ACCESSORIES*
>
> *On Search  "Digital Camera Optics" , How to get hits return me 3rd
> Document ONLY
> **instead of other Documents  [ The word DIGITAL CAMERA is common word
> in all cases].
> *
>
> *Thx in advance
> **Karthik*
>

You cannot get just the 3rd document.
If you set default operator to AND in queryparser, then you will the 3rd
and the 6th document.

your query must look like:

+digital +camera +optics

 Best,

  Sergiu

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *WITH WARM REGARDS
> HAVE A NICE DAY
> [ N.S.KARTHIK]*
>


---------------------------------------------------------------------
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]

Reply via email to