org.apache.solr.response.transform
Class ValueSourceAugmenter

java.lang.Object
  extended by org.apache.solr.response.transform.DocTransformer
      extended by 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

Field Summary
 String name
           
 QParser qparser
           
 ValueSource valueSource
           
 
Constructor Summary
ValueSourceAugmenter(String name, QParser qparser, ValueSource valueSource)
           
 
Method Summary
 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
 
Methods inherited from class org.apache.solr.response.transform.DocTransformer
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name

qparser

public final QParser qparser

valueSource

public final ValueSource valueSource
Constructor Detail

ValueSourceAugmenter

public ValueSourceAugmenter(String name,
                            QParser qparser,
                            ValueSource valueSource)
Method Detail

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 alter
docid - The Lucene internal doc id


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.