Class SearchHitFactory

java.lang.Object
io.goobi.viewer.model.search.SearchHitFactory

public class SearchHitFactory extends Object
  • Constructor Details

    • SearchHitFactory

      public SearchHitFactory(Map<String,Set<String>> searchTerms, List<StringPair> sortFields, List<String> exportFields, int proximitySearchDistance, ThumbnailHandler thumbnailHandler, Locale locale)
      Parameters:
      searchTerms -
      sortFields -
      exportFields -
      proximitySearchDistance -
      thumbnailHandler -
      locale -
  • Method Details

    • createSearchHit

      public SearchHit createSearchHit(org.apache.solr.common.SolrDocument doc, org.apache.solr.common.SolrDocument ownerDoc, String fulltext, HitType overrideType) throws PresentationException, IndexUnreachableException

      createSearchHit.

      Parameters:
      doc - a SolrDocument object.
      ownerDoc - a SolrDocument object.
      fulltext - Optional fulltext (page docs only).
      overrideType - a HitType object.
      Returns:
      a SearchHit object.
      Throws:
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getHitType

      public HitType getHitType(HitType overrideType, StructElement se, String docType)
    • setAdditionalMetadataListType

      public SearchHitFactory setAdditionalMetadataListType(String additionalMetadataListType)
      Parameters:
      additionalMetadataListType - the additionalMetadataListType to set
      Returns:
      this
    • getAdditionalMetadataIgnoreFields

      public Set<String> getAdditionalMetadataIgnoreFields()
      Returns:
      the additionalMetadataIgnoreFields
    • getAdditionalMetadataTranslateFields

      public Set<String> getAdditionalMetadataTranslateFields()
      Returns:
      the additionalMetadataTranslateFields
    • getAdditionalMetadataOneLineFields

      public Set<String> getAdditionalMetadataOneLineFields()
      Returns:
      the additionalMetadataOneLineFields
    • getAdditionalMetadataSnippetFields

      public Set<String> getAdditionalMetadataSnippetFields()
      Returns:
      the additionalMetadataSnippetFields
    • getAdditionalMetadataNoHighlightFields

      public Set<String> getAdditionalMetadataNoHighlightFields()
      Returns:
      the additionalMetadataNoHighlightFields