Class BaseEditorialTransformer

java.lang.Object
org.apache.solr.response.transform.DocTransformer
org.apache.solr.response.transform.BaseEditorialTransformer

public abstract class BaseEditorialTransformer extends DocTransformer
  • Constructor Details

    • BaseEditorialTransformer

      public BaseEditorialTransformer(String name, String idFieldName, FieldType ft)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class DocTransformer
      Returns:
      The name of the transformer
    • transform

      public void transform(org.apache.solr.common.SolrDocument doc, int docid, DocIterationInfo docInfo)
      Description copied from class: DocTransformer
      This is where implementations do the actual work. If implementations require a valid docId and index access, the DocTransformer.needsSolrIndexSearcher() method must return true
      Specified by:
      transform in class DocTransformer
      Parameters:
      doc - The document to alter
      docid - The Lucene internal doc id, or -1 in cases where the doc did not come from the index
      docInfo - the document information for this document, including the score. Do not pass null, instead use DocIterationInfo.NONE.
      See Also:
    • getIdSet

      protected abstract Set<org.apache.lucene.util.BytesRef> getIdSet()
    • getKey

      protected org.apache.lucene.util.BytesRef getKey(org.apache.solr.common.SolrDocument doc)