lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Bazhenov <dot...@gmail.com>
Subject Re: how to do something like sql in () clause
Date Mon, 20 Jun 2011 23:49:34 GMT
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, 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 the reader of the 
> message is not the intended recipient or an authorized representative of the
> intended recipient, you are hereby notified that any dissemination of this
> communication is strictly prohibited. If you have received this communication in
> error, please notify us immediately by e-mail and delete the message and any
> attachments from your system.
> 

---
Denis Bazhenov <dotsid@gmail.com>






---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message