Class PhoneFulltextExtractorTypeAdapter
java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.indexing.typeadapter.StringFulltextExtractorTypeAdapter
ch.tocco.nice2.enterprisesearch.impl.indexing.typeadapter.PhoneFulltextExtractorTypeAdapter
- All Implemented Interfaces:
FulltextExtractorTypeAdapter
@Component
public class PhoneFulltextExtractorTypeAdapter
extends StringFulltextExtractorTypeAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Object
extractContent
(TypedValue<?> value) This is the mapping between typed values and index value types.getSuffix
(@Nullable FieldModel fieldModel) makeFieldName
(FieldModel fieldModel) This is the mapping between model field names and index field names.Methods inherited from class ch.tocco.nice2.enterprisesearch.impl.indexing.typeadapter.StringFulltextExtractorTypeAdapter
setMaxLengthOfFileComparedToMaxMemory
-
Constructor Details
-
PhoneFulltextExtractorTypeAdapter
public PhoneFulltextExtractorTypeAdapter(org.slf4j.Logger log)
-
-
Method Details
-
extractContent
Description copied from interface:FulltextExtractorTypeAdapter
This is the mapping between typed values and index value types. You can prepare values in order that they can be handled better by the index.- Specified by:
extractContent
in interfaceFulltextExtractorTypeAdapter
- Overrides:
extractContent
in classStringFulltextExtractorTypeAdapter
- Parameters:
value
- a typed value, whose real value might be null or empty- Returns:
- a value of a type which can be handled by the index
-
makeFieldName
Description copied from interface:FulltextExtractorTypeAdapter
This is the mapping between model field names and index field names.- Specified by:
makeFieldName
in interfaceFulltextExtractorTypeAdapter
- Overrides:
makeFieldName
in classStringFulltextExtractorTypeAdapter
- Parameters:
fieldModel
- a field model whose name should be used as base for the field name mapping- Returns:
- the final name which is handled by the index (e.g. suffixed by the wildcard name of the index)
-
getSuffix
- Specified by:
getSuffix
in interfaceFulltextExtractorTypeAdapter
- Overrides:
getSuffix
in classStringFulltextExtractorTypeAdapter
-