Class DefaultEntityIndexExtractor

java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.indexing.extractor.DefaultEntityIndexExtractor
All Implemented Interfaces:
IndexExtractor
Direct Known Subclasses:
SearchConfigEntityIndexExtractor

@Component @Order(0) public class DefaultEntityIndexExtractor extends Object implements IndexExtractor
Default extractor for entities.
  • Field Details

    • l10N

      protected final L10N l10N
    • log

      protected final org.slf4j.Logger log
  • Constructor Details

    • DefaultEntityIndexExtractor

      public DefaultEntityIndexExtractor(DefaultDisplayService defaultDisplayService, L10N l10N, org.slf4j.Logger log, @Qualifier("entityFieldIndexExtractor") IndexExtractor entityFieldIndexExtractor)
  • Method Details

    • extract

      @Nullable public @Nullable Map<String,Object> extract(Entity entity, FieldIndexExtractorFilter filter)
      Description copied from interface: IndexExtractor
      If result is not null, it will be taken for indexing.
      Specified by:
      extract in interface IndexExtractor
      Parameters:
      entity - Entity for extracting content.
      Returns:
      null if is not handled by the current extractor or an result if it's handled.