On 8/24/2018 4:45 AM, Khurram Shehzad wrote:
I have a requirement to replicate following SQL query logic containing OR condition as

*where
*

*((term1=a and term2=b) OR (term3=a and term4=b)) and context in (2,3,4,5.....200)
*

roughly in lucene


*(+term1:a +term2:b) (+term3:a and +term4:b) #context:2 4 7 ... 198*


Tomoko is correct, this should be on the user list, not the dev list.  This list is for discussing the development of the Lucene/Solr software itself, not for questions or user code.

The following is probably the syntax you're looking for.  I placed it on two lines to control the line wrapping by the email client.  When you do it for real, it should only be one line:

+((+term1:a +term2:b) (+term3:a +term4:b))
+context:(2 4 7 ... 200)

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to