public class ValueSourceAugmenter extends DocTransformer
Modifier and Type | Field and Description |
---|---|
String |
name |
QParser |
qparser |
org.apache.lucene.queries.function.ValueSource |
valueSource |
context
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
|
protected void |
setValue(SolrDocument doc,
Object val) |
void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work
|
getExtraRequestFields, toString
public final String name
public final QParser qparser
public final org.apache.lucene.queries.function.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 The Apache Software Foundation. All rights reserved.