If state of an object is 3 then the object should not be shown but if the state of object is 3 and a particular sell_code=xyz then the object should be returned, also it is not necessary that state of object is 3 it could be 1 or 2 also but the object should be returned only if state of object is 3 and sell_code is xyz.
How to create query for this condition, Can anybody help me in this?
I'm not entirely clear on your requirements (confused by the wording). If you can formulate that into a boolean expression, it'll be relatively easy to convert into a query.
Do you just want the document returned if state:3 AND sell_code:xyz?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.