Class HibernateOrmMassIndexerFilteringTypeStep

java.lang.Object
org.hibernate.search.mapper.orm.massindexing.impl.HibernateOrmMassIndexerFilteringTypeStep
All Implemented Interfaces:
MassIndexerFilteringTypeStep
Direct Known Subclasses:
HibernateOrmMassIndexerReindexParameterStep

public class HibernateOrmMassIndexerFilteringTypeStep extends Object implements MassIndexerFilteringTypeStep
  • Constructor Details

    • HibernateOrmMassIndexerFilteringTypeStep

      public HibernateOrmMassIndexerFilteringTypeStep(HibernateOrmMassIndexer massIndexer, Class<?> type)
  • Method Details

    • reindexOnly

      public MassIndexerReindexParameterStep reindexOnly(String conditionalExpression)
      Description copied from interface: MassIndexerFilteringTypeStep
      Use a JPQL/HQL conditional expression to limit the entities to be re-indexed.

      For instance a valid expression could be the following:

           manager.level < 2
       
      ... to filter instances that have a manager whose level is strictly less than 2.

      Parameters can be used, so assuming the parameter "max" is defined in the next step, this is valid as well:

           manager.level < :max
       
      ... to filter instances that have a manager whose level is strictly less than :max.
      Specified by:
      reindexOnly in interface MassIndexerFilteringTypeStep
      Parameters:
      conditionalExpression - A JPQL/HQL query text which expresses the condition to apply
      Returns:
      A new step to define optional parameters for the JPQL/HQL conditional expression or other expressions.