public class ValueSourceAugmenter extends DocTransformer
| Modifier and Type | Field and Description |
|---|---|
String |
name |
QParser |
qparser |
ValueSource |
valueSource |
| Constructor and Description |
|---|
ValueSourceAugmenter(String name,
QParser qparser,
ValueSource valueSource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
void |
setContext(TransformContext context)
This is called before transform and sets
|
void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work
|
toStringpublic final String name
public final QParser qparser
public final ValueSource valueSource
public ValueSourceAugmenter(String name, QParser qparser, ValueSource valueSource)
public String getName()
getName in class DocTransformerpublic void setContext(TransformContext context)
DocTransformersetContext in class DocTransformercontext - The TransformContext stores information about the current state of things in Solr that may be
useful for doing transformations.public void transform(SolrDocument doc, int docid)
DocTransformertransform in class DocTransformerdoc - The document to alterdocid - The Lucene internal doc idCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.