Class OriginalScoreAugmenter
java.lang.Object
org.apache.solr.response.transform.DocTransformer
org.apache.solr.response.transform.OriginalScoreAugmenter
Simple Augmenter that adds the originalScore
- Since:
- solr 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.response.transform.DocTransformer
DocTransformer.NoopFieldTransformer -
Field Summary
Fields inherited from class org.apache.solr.response.transform.DocTransformer
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidtransform(org.apache.solr.common.SolrDocument doc, int docid, DocIterationInfo docInfo) This is where implementations do the actual work.Methods inherited from class org.apache.solr.response.transform.DocTransformer
getExtraRequestFields, getRawFields, needsSolrIndexSearcher, setContext, toString
-
Constructor Details
-
OriginalScoreAugmenter
-
-
Method Details
-
getName
- Specified by:
getNamein classDocTransformer- Returns:
- The name of the transformer
-
transform
Description copied from class:DocTransformerThis is where implementations do the actual work. If implementations require a valid docId and index access, theDocTransformer.needsSolrIndexSearcher()method must return true- Specified by:
transformin classDocTransformer- Parameters:
doc- The document to alterdocid- The Lucene internal doc id, or -1 in cases where thedocdid not come from the indexdocInfo- the document information for this document, including the score. Do not passnull, instead useDocIterationInfo.NONE.- See Also:
-