Class SearchConfigEntityIndexExtractor
java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.indexing.extractor.DefaultEntityIndexExtractor
ch.tocco.nice2.enterprisesearch.impl.indexing.extractor.SearchConfigEntityIndexExtractor
- All Implemented Interfaces:
IndexExtractor
@Component
@Order(-100)
public class SearchConfigEntityIndexExtractor
extends DefaultEntityIndexExtractor
Extractor for entities which contain a search config.
-
Field Summary
Fields inherited from class ch.tocco.nice2.enterprisesearch.impl.indexing.extractor.DefaultEntityIndexExtractor
l10N, log
Fields inherited from interface ch.tocco.nice2.enterprisesearch.api.indexing.IndexExtractor
INDEX_EXTRACTOR_ORDER
-
Constructor Summary
ConstructorDescriptionSearchConfigEntityIndexExtractor
(DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, L10N l10N, org.slf4j.Logger log, IndexExtractor entityFieldIndexExtractor) -
Method Summary
-
Constructor Details
-
SearchConfigEntityIndexExtractor
public SearchConfigEntityIndexExtractor(DefaultDisplayService defaultDisplayService, @Lazy QueryBuilderFactory queryBuilderFactory, L10N l10N, org.slf4j.Logger log, @Qualifier("entityFieldIndexExtractor") IndexExtractor entityFieldIndexExtractor)
-
-
Method Details
-
extract
Description copied from interface:IndexExtractor
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 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 interfaceIndexExtractor
- Overrides:
extract
in classDefaultEntityIndexExtractor
- Parameters:
entity
- Entity for extracting content.- Returns:
- null if is not handled by the current extractor or an result if it's handled.
-