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: Multiple field searching
Date Wed, 20 Mar 2002 08:01:24 GMT
Tate,

The correct syntax is something like +(keyword:computers) -(subject:News).

HTH.

Maybe it would be helpful to add parse(String[] query, String[] fields,
Analyzer analyzer) methods into MultiFieldQueryParser? What do you think
Otis?

Kelvin
----- Original Message -----
From: "Tate Jones" <tate@pisoftware.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Wednesday, March 20, 2002 3:36 PM
Subject: Multiple field searching


> hi,
>
> I am trying to search across multiple fields using the following query
>
> +keyword:computers +subject:News content:xml
> or
> +(keyword:{computers}) +(subject:{News}) content:xml
>
> i have added the fields to the document correctly.
>
> Have also tried using the MutipleFieldQueryParser without success.
>
> The only query that works is, which is not correct as they are OR's
> keyword:computers subject:IT content:xml
>
> Is anyone having the same problems
>
> Thanks in advance
> Tate
>
>
> --
> 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