The current Lucene query syntax is specified here: http://lucene.apache.org/java/2_3_2/queryparsersyntax.html 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 <[email protected]>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: > http://www.nabble.com/Question-on-query-tp24680717p24680717.html > Sent from the Lucene - General mailing list archive at Nabble.com. > > -- Ted Dunning, CTO DeepDyve
