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
|
protected void |
setValue(SolrDocument doc,
Object val) |
void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work
|
toString
public 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 DocTransformer
public void setContext(TransformContext context)
DocTransformer
setContext
in class DocTransformer
context
- 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)
DocTransformer
transform
in class DocTransformer
doc
- The document to alterdocid
- The Lucene internal doc idprotected void setValue(SolrDocument doc, Object val)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.