public class ValueSourceAugmenter extends DocTransformer
| Modifier and Type | Field and Description |
|---|---|
String |
name |
QParser |
qparser |
org.apache.lucene.queries.function.ValueSource |
valueSource |
| Constructor and Description |
|---|
ValueSourceAugmenter(String name,
QParser qparser,
org.apache.lucene.queries.function.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 org.apache.lucene.queries.function.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–2014 The Apache Software Foundation. All rights reserved.