RE: how to do something like sql in () clause

2011-06-20 Thread Hiller, Dean x66079
Thanks much, Dean -Original Message- From: Denis Bazhenov [mailto:dot...@gmail.com] Sent: Monday, June 20, 2011 6:27 PM To: java-user@lucene.apache.org Subject: Re: how to do something like sql in () clause SQL IN operator behaves as OR operator. So as Occur.SHOULD does. It will match

Re: how to do something like sql in () clause

2011-06-20 Thread Denis Bazhenov
Also, how do you write that in the query syntax? > > Thanks, > Dean > > -Original Message- > From: Denis Bazhenov [mailto:dot...@gmail.com] > Sent: Monday, June 20, 2011 5:50 PM > To: java-user@lucene.apache.org > Subject: Re: how to do something like sql in () clau

RE: how to do something like sql in () clause

2011-06-20 Thread Hiller, Dean x66079
to do something like sql in () clause You could use BooleanQuery with Occur.SHOULD quantificator http://lucene.apache.org/java/3_0_3/api/core/org/apache/lucene/search/BooleanClause.Occur.html#SHOULD On Jun 21, 2011, at 9:24 AM, Hiller, Dean x66079 wrote: > I need to do something like a luc

Re: how to do something like sql in () clause

2011-06-20 Thread Denis Bazhenov
You could use BooleanQuery with Occur.SHOULD quantificator http://lucene.apache.org/java/3_0_3/api/core/org/apache/lucene/search/BooleanClause.Occur.html#SHOULD On Jun 21, 2011, at 9:24 AM, Hiller, Dean x66079 wrote: > I need to do something like a lucene query with > > Where accountId in ( 1,

how to do something like sql in () clause

2011-06-20 Thread Hiller, Dean x66079
I need to do something like a lucene query with Where accountId in ( 1, 2, 3, 4) Is there a way to do that in Lucene Query language? Thanks, Dean This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If