lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <>
Subject Re: Question on query
Date Mon, 27 Jul 2009 16:01:16 GMT
The current Lucene query syntax is specified here:  Note that use of
ampersands instead of AND is not supported.

You may want to write your own query parser.  It is relatively easy to do.
Take a look at the current query parser for some examples.

You might also like to look at the 2.9 release which (I believe) has a
package from IBM that makes query syntax much easier to change.

On Mon, Jul 27, 2009 at 6:29 AM, stx_gentoo <>wrote:

> NOTE: I've read the documentation....but I am still a little confused.
> I am passing some advanced queries to web service that is using lucene.
> Example:
> John AND Beth AND (Lucy OR Gary) AND NOT Frank AND NOT Paul
> I am want to use "John"&&"Beth"&&("Lucy"||"Gary")!"Frank"!"Paul" and
a few
> other variations of this when I pass the query, but no success. I have no
> problems using single queries, like the documentation...but no luck on
> something more advanced.
> I am not familiar with Lucene at all, and I just found out that I need to
> interface with service that uses it...
> Appreciate any assistance!
> --
> View this message in context:
> Sent from the Lucene - General mailing list archive at

Ted Dunning, CTO

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message