| We are just migrating from Hibernate 3 to Version 5. What about entities with @FullTextFilterDefs and their implementations? Respectively the use of FullTextQuery#enableFullTextFilter? @Entity @Table(name = "Child") @Indexed @FullTextFilterDefs(@FullTextFilterDef(name = "child_mandant", impl = MandantFilterFactory.class)) public class Child {} public class MandantFilterFactory{ @Factory public Filter getFilter(){} } FullTextQuery hibQuery = fullTextSession.createFullTextQuery(query, Child.class); hibQuery.enableFullTextFilter("child_mandant").setParameter("partitionName", "one"); enableFullTextFilter uses the @Factory method of MandantFilterFactory which returns the deprecated Filter. Maybe enableFullTextFilter should be deprecated, too? Or rewritten with returning a Query as factory method and internally using BooleanClause.Occur.FILTER? |