In Search Context there is a method addAttributeQuery(QName qname, String value).
This creates search query with AND.
Is there any way I can add OR query in search context?
Suppose I have one property test1:name and another attribute test2:name.
I want to search name property with respect to test1:name as well as test2:name.
I can do it by writing lucene query and get the results. But I have to do it via Search Context.
Let me know if its possible as i do not see any method in SearchContext.java to take OR query.