1 Reply Latest reply on Aug 11, 2010 6:40 AM by Manik Surtani

    how to restrict the returned types in query

    Lin Ye Novice

      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?