public abstract class DocTransformer extends Object
QueryElevationComponent
)
New instance for each requestTransformerFactory
Constructor and Description |
---|
DocTransformer() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getName() |
void |
setContext(TransformContext context)
This is called before transform and sets
|
String |
toString() |
abstract void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work
|
public abstract String getName()
public void setContext(TransformContext context)
context
- The TransformContext
stores information about the current state of things in Solr that may be
useful for doing transformations.public abstract void transform(SolrDocument doc, int docid) throws IOException
doc
- The document to alterdocid
- The Lucene internal doc idIOException
- If there is a low-level I/O error.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.