hmmm....I'm a little confused.

Do you mean "testa +testb" as in the term "testa" is optional and "testb" is
mandatory? Or do you want the phrase "testa+testb"?

If the former, if the query "testa+testb" (note no spaces between the end of
one term and the "+"), the query does indeed become (realName:"testa testb")
(keywords:"testa testb").

If you submit "testa +testb", the query becomes (realName:testa
+realName:testb) (keywords:testa +keywords:testb).

Kelvin

----- Original Message -----
From: Johan "Spocke" S�rlin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 6:49 AM
Subject: RE: Recommended way of performing multi-field searches (Repost)


> Sorry I must be drunk 8-)... I accedenly sent the mail.... Here it comes
> again:
>
> Hi everyone!!
>
> I've saw you discussion about multiple searches in Lucene and I think
Kelvin
> Tan
> work was nice.. But I have a problem with it, how do a do a subquery on
> multiple fields??
>
> If I send in the "testa+testb" as a query the result turns out:
> (realName:"testa testb") (keywords:"testa testb")
>
> But I want:
>
> (realName:"testb+testa") (keywords:"testb+testa")
>
> Is it possible, and if so how???
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to