public class DocTransformers extends DocTransformer
context| Constructor and Description |
|---|
DocTransformers() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(DocTransformer a) |
String |
getName() |
DocTransformer |
getTransformer(int idx) |
void |
setContext(ResultContext context)
This is called before transform and sets
|
int |
size() |
void |
transform(SolrDocument doc,
int docid,
float score)
This is where implementations do the actual work
|
getExtraRequestFields, toStringpublic String getName()
getName in class DocTransformerpublic void addTransformer(DocTransformer a)
public int size()
public DocTransformer getTransformer(int idx)
public void setContext(ResultContext context)
DocTransformersetContext in class DocTransformercontext - The ResultContext stores information about how the documents were produced.public void transform(SolrDocument doc, int docid, float score) throws IOException
DocTransformertransform in class DocTransformerdoc - The document to alterdocid - The Lucene internal doc idscore - the score for this documentIOException - If there is a low-level I/O error.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.