Class FileIndexableElementType

All Implemented Interfaces:
IndexableElementType<File>, IndexableModelItemType, ElementType<File>, ModelItemType, LogEnabled, PluginAware, Component, Configurable, Contextualizable, Serviceable
Direct Known Subclasses:
FileRepositoryElementType

Class for file type of elements that can be indexed
  • Constructor Details

  • Method Details

    • indexSingleValue

      public void indexSingleValue(org.apache.solr.common.SolrInputDocument document, org.apache.solr.common.SolrInputDocument rootObjectDocument, String fieldName, File value, IndexableDataContext context)
      Description copied from interface: IndexableElementType
      Index the given single value in a solr document.
      Specified by:
      indexSingleValue in interface IndexableElementType<File>
      Parameters:
      document - the solr document to index into.
      rootObjectDocument - the solr document of the root object.
      fieldName - the name of the indexing field
      value - the single value to index
      context - the context of the data to index. Can not be null.
    • indexSingleValueForFullTextField

      public void indexSingleValueForFullTextField(org.apache.solr.common.SolrInputDocument document, org.apache.solr.common.SolrInputDocument rootObjectDocument, File value, IndexableDataContext context)
      Description copied from interface: IndexableElementType
      Index the given single value in a full-text field of solr document. The solr full-text field name is given by the data context.
      Specified by:
      indexSingleValueForFullTextField in interface IndexableElementType<File>
      Parameters:
      document - the solr document to index into.
      rootObjectDocument - the solr document of the root object.
      value - the single value to index in fulltext field.
      context - the context of the data to index. Can not be null.
    • getSchemaType

      Description copied from interface: IndexableElementType
      Get the solr schema type from the type.
      Specified by:
      getSchemaType in interface IndexableElementType<File>
      Returns:
      The solr schema type.