Hey Aj, how are you executing the query exactly? Your code only shows query generation, and it works fine when creating and searching documents via the Java api. I assume you're using Geode to run your query? Can you show how you're actually using it to run queries?
Cheers, Michele