In hibernate search, the following way can be used to restrict the returned types:
org.hibernate.Query fullTextQuery = fullTextSession.createFullTextQuery( luceneQuery, Customer.class );
When querying Infinispan, the QueryFactory doesn't provide a parameter to pass in the class types, and it seems when constructing the QueryHelper, all indexed classes have to be passed in. So how to restrict the returned types when querying Infinispan?
Nothing at the moment, but this will be in the next 4.1.0 release candidate. See ISPN-593.