Hi Guys

The process is correct ,
but It is Impossible to have the optional terms.

The Documents we Index is in millions with similar word trailers .


Any other Ideas , Please advise....

Thx in advance
Karthik

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


Karthik N S wrote:

>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
>
>
You can ask the user to provide mandatory terms and optional terms and
then combine the queries in a

mandatory : digital camera optics
optional: battery cable

an then create the query: +digital  +camera +optics battery cable

Hope it helps even if I don't know if I undestood your problem correctly.

 Sergiu


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