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, toString
public String getName()
getName
in class DocTransformer
public void addTransformer(DocTransformer a)
public int size()
public DocTransformer getTransformer(int idx)
public void setContext(ResultContext context)
DocTransformer
setContext
in class DocTransformer
context
- The ResultContext
stores information about how the documents were produced.public void transform(SolrDocument doc, int docid, float score) throws IOException
DocTransformer
transform
in class DocTransformer
doc
- 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.