org.apache.solr.response.transform
Class ValueSourceAugmenter
java.lang.Object
org.apache.solr.response.transform.DocTransformer
org.apache.solr.response.transform.ValueSourceAugmenter
public class ValueSourceAugmenter
- extends DocTransformer
Add values from a ValueSource (function query etc)
NOT really sure how or if this could work...
- Since:
- solr 4.0
name
public final String name
qparser
public final QParser qparser
valueSource
public final ValueSource valueSource
ValueSourceAugmenter
public ValueSourceAugmenter(String name,
QParser qparser,
ValueSource valueSource)
getName
public String getName()
- Specified by:
getName
in class DocTransformer
- Returns:
- The name of the transformer
setContext
public void setContext(TransformContext context)
- Description copied from class:
DocTransformer
- This is called before transform and sets
- Overrides:
setContext
in class DocTransformer
- Parameters:
context
- The TransformContext
stores information about the current state of things in Solr that may be
useful for doing transformations.
transform
public void transform(SolrDocument doc,
int docid)
- Description copied from class:
DocTransformer
- This is where implementations do the actual work
- Specified by:
transform
in class DocTransformer
- Parameters:
doc
- The document to alterdocid
- The Lucene internal doc id
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.