lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Tan" <kel...@relevanz.com>
Subject Re: Recommended way of performing multi-field searches (Repost)
Date Wed, 21 Nov 2001 01:26:25 GMT
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 <spocke@skebo.ac>
To: <lucene-user@jakarta.apache.org>
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:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message