For querying, is only String type of field can be searched?
Yes, you can. Have a look at Querying Infinispan.