Class ContributedIndexDefinition.Builder

java.lang.Object
io.jmix.search.index.mapping.ContributedIndexDefinition.Builder
Enclosing class:
ContributedIndexDefinition

public static class ContributedIndexDefinition.Builder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • withIndexName

      public ContributedIndexDefinition.Builder withIndexName(@Nullable String indexName)
      Sets an explicit index name. By default, the name is derived from the entity name.
      Parameters:
      indexName - index name, or null to derive it from the entity name
      Returns:
      builder
    • withExtendedSearchSettings

      public ContributedIndexDefinition.Builder withExtendedSearchSettings(ExtendedSearchSettings extendedSearchSettings)
      Sets the extended search settings of the index. By default, extended search is disabled.
      Parameters:
      extendedSearchSettings - extended search settings
      Returns:
      builder
      See Also:
    • withIndexablePredicate

      public ContributedIndexDefinition.Builder withIndexablePredicate(Predicate<Object> indexablePredicate)
      Sets the predicate that decides whether an instance is indexed. By default, every instance is indexed.
      Parameters:
      indexablePredicate - predicate that receives an entity instance
      Returns:
      builder
      See Also:
    • build