public class ScoreAugmenter extends DocTransformer
DocTransformer.NoopFieldTransformercontext| 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, toStringpublic ScoreAugmenter(String display)
public String getName()
getName in class DocTransformerpublic void transform(SolrDocument doc, int docid, float score)
DocTransformerDocTransformer.needsSolrIndexSearcher()
method must return true
Default implementation calls DocTransformer.transform(SolrDocument, int).transform in class DocTransformerdoc - 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)
DocTransformerDocTransformer.needsSolrIndexSearcher()
method must return truetransform in class DocTransformerdoc - 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-2021 Apache Software Foundation. All Rights Reserved.