did you try with the sample example which i had mentioned in my reply. 

try to break that encodedquery to addQuery() and then addOrCondition() and see if it's working or not.