Class ValueAugmenterFactory.ValueAugmenter
- java.lang.Object
-
- org.apache.solr.response.transform.DocTransformer
-
- org.apache.solr.response.transform.ValueAugmenterFactory.ValueAugmenter
-
- Enclosing class:
- ValueAugmenterFactory
public static class ValueAugmenterFactory.ValueAugmenter extends DocTransformer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.response.transform.DocTransformer
DocTransformer.NoopFieldTransformer
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
value
-
Fields inherited from class org.apache.solr.response.transform.DocTransformer
context
-
-
Constructor Summary
Constructors Constructor Description ValueAugmenter(String name, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
void
transform(org.apache.solr.common.SolrDocument doc, int docid)
This is where implementations do the actual work.-
Methods inherited from class org.apache.solr.response.transform.DocTransformer
getExtraRequestFields, getRawFields, needsSolrIndexSearcher, setContext, toString, transform
-
-
-
-
Field Detail
-
value
protected final Object value
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in classDocTransformer
- Returns:
- The name of the transformer
-
transform
public void transform(org.apache.solr.common.SolrDocument doc, int docid)
Description copied from class:DocTransformer
This is where implementations do the actual work. If implementations require a valid docId and index access, theDocTransformer.needsSolrIndexSearcher()
method must return true- Specified by:
transform
in classDocTransformer
- Parameters:
doc
- The document to alterdocid
- The Lucene internal doc id, or -1 in cases where thedoc
did not come from the index- See Also:
DocTransformer.needsSolrIndexSearcher()
-
-