public class ScoreAugmenter extends DocTransformer
context
Constructor and Description |
---|
ScoreAugmenter(String display) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work.
|
void |
transform(SolrDocument doc,
int docid,
float score)
This is where implementations do the actual work.
|
getExtraRequestFields, needsSolrIndexSearcher, setContext, toString
public ScoreAugmenter(String display)
public String getName()
getName
in class DocTransformer
public void transform(SolrDocument doc, int docid, float score)
DocTransformer
DocTransformer.needsSolrIndexSearcher()
method must return true
Default implementation calls DocTransformer.transform(SolrDocument, int)
.transform
in class DocTransformer
doc
- The document to alterdocid
- The Lucene internal doc id, or -1 in cases where the doc
did not come from the indexscore
- the score for this documentDocTransformer.needsSolrIndexSearcher()
public void transform(SolrDocument doc, int docid)
DocTransformer
DocTransformer.needsSolrIndexSearcher()
method must return truetransform
in class DocTransformer
doc
- The document to alterdocid
- The Lucene internal doc id, or -1 in cases where the doc
did not come from the indexDocTransformer.needsSolrIndexSearcher()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.