Class StringFulltextExtractorTypeAdapter

All Implemented Interfaces:
Direct Known Subclasses:
HtmlFulltextExtractorTypeAdapter, PhoneFulltextExtractorTypeAdapter, TextFulltextExtractorTypeAdapter

@Component public class StringFulltextExtractorTypeAdapter extends Object implements FulltextExtractorTypeAdapter
  • Constructor Details

    • StringFulltextExtractorTypeAdapter

      public StringFulltextExtractorTypeAdapter(org.slf4j.Logger log)
  • Method Details

    • extractContent

      @Nullable public @Nullable Object extractContent(TypedValue<?> value)
      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 interface FulltextExtractorTypeAdapter
      value - a typed value, whose real value might be null or empty
      a value of a type which can be handled by the index
    • makeFieldName

      public String makeFieldName(FieldModel fieldModel)
      Description copied from interface: FulltextExtractorTypeAdapter
      This is the mapping between model field names and index field names.
      Specified by:
      makeFieldName in interface FulltextExtractorTypeAdapter
      fieldModel - a field model whose name should be used as base for the field name mapping
      the final name which is handled by the index (e.g. suffixed by the wildcard name of the index)
    • getSuffix

      public String getSuffix(@Nullable @Nullable FieldModel fieldModel)
      Specified by:
      getSuffix in interface FulltextExtractorTypeAdapter
    • setMaxLengthOfFileComparedToMaxMemory

      @Value("${nice2.enterprisesearch.maxLengthOfFileComparedToMaxMemory}") public void setMaxLengthOfFileComparedToMaxMemory(int maxLengthOfFileComparedToMaxMemory)