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 Fri, 22 Mar 2002 00:43:58 GMT

----- Original Message -----
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Friday, March 22, 2002 1:24 AM
Subject: Re: Multiple field searching


>
> --- Kelvin Tan <kelvin@relevanz.com> wrote:
> > hmmm...really?
> >
> > My impression was that the "AND"s are treated equivalently with "+"s
> > by the
> > parser, so they're redundant.
>
> Correct.
>
> > The "{" and "}"s aren't part of the syntax, are they?
>
> I was wondering where those came from.
> I don't think I've seen them in QueryParser.jj.

<Feeling Guilty>It could possibly be the documentation in
MultiFieldQueryParser...</Feeling Guilty>

    /**
     * <p>
     * Parses a query which searches on the fields specified.
     * <p>
     * If x fields are specified, this effectively constructs:
     * <pre>
     * <code>
     * ({field1}:{query}) ({field2}:{query})
({field3}:{query})...({fieldx}:{query})
     * </code>
     * </pre>
     *
     * @param query Query string to parse
     * @param fields Fields to search on
     * @param analyzer Analyzer to use
     */

Kelvin

>
> Otis
>
> > ----- Original Message -----
> > From: "Mehran Mehr" <mehran_at_mehr@yahoo.com>
> > To: "Lucene Users List" <lucene-user@jakarta.apache.org>; "Kelvin
> > Tan"
> > <kelvin@relevanz.com>
> > Sent: Thursday, March 21, 2002 8:11 PM
> > Subject: Re: Multiple field searching
> >
> >
> > > this is the right syntax:
> > >
> > > +(keyword:{computers}) AND +(subject:{News}) AND
> > > content:xml
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Movies - coverage of the 74th Academy Awards®
> > > http://movies.yahoo.com/
> > >
> > > --
> > > 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>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
>
> --
> 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