Kelvin,
Right now I can't imagine a situation where one would need to pass
multiple query strings in. I certainly don't need it anywhere where I
use Lucene, at least not yet. So I'd say hold off with that addition
unless people say they really need it. Couldn't one always just call
the parse method multiple times with a different query string each
time, and then combine returned Query instances?
Otis
--- Kelvin Tan <[EMAIL PROTECTED]> wrote:
> 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" <[EMAIL PROTECTED]>
> To: "Lucene Users List" <[EMAIL PROTECTED]>
> 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:[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]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>