Class DecimalFulltextExtractorTypeAdapter
java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.indexing.typeadapter.DecimalFulltextExtractorTypeAdapter
- All Implemented Interfaces:
FulltextExtractorTypeAdapter
public class DecimalFulltextExtractorTypeAdapter
extends Object
implements FulltextExtractorTypeAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Object
extractContent
(TypedValue<?> value) Value is extracted as float because Solr does not support BigDecimal.getSuffix
(@Nullable FieldModel fieldModel) makeFieldName
(FieldModel fieldModel) This is the mapping between model field names and index field names.
-
Constructor Details
-
DecimalFulltextExtractorTypeAdapter
public DecimalFulltextExtractorTypeAdapter()
-
-
Method Details
-
extractContent
Value is extracted as float because Solr does not support BigDecimal.- Specified by:
extractContent
in interfaceFulltextExtractorTypeAdapter
- 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
- 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
-