Interface IndexExtractor

All Known Implementing Classes:
DefaultEntityFieldIndexExtractor, DefaultEntityIndexExtractor, PageIndexExtractor, SearchConfigEntityIndexExtractor

public interface IndexExtractor
Index extractors can be contributed per entity type. The result of the first extractor who returns a non-null result will be taken for indexing. Index extractors can also be overwritten (by using the "before" or "after" attribute).
  • Field Details

  • Method Details

    • extract

      @Nullable default @Nullable Map<String,Object> extract(Entity entity)
      If result is not null, it will be taken for indexing.
      Parameters:
      entity - Entity for extracting content.
      Returns:
      null if is not handled by the current extractor or an result if it's handled.
    • extract

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