public static final class DocTransformer.NoopFieldTransformer extends DocTransformer
DocTransformer.NoopFieldTransformercontext| Constructor and Description |
|---|
NoopFieldTransformer() |
NoopFieldTransformer(String field) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getExtraRequestFields()
When a transformer needs access to fields that are not automatically derived from the
input fields names, this option lets us explicitly say the field names that we hope
will be in the SolrDocument.
|
String |
getName() |
void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work.
|
needsSolrIndexSearcher, setContext, toString, transformpublic NoopFieldTransformer()
public NoopFieldTransformer(String field)
public String getName()
getName in class DocTransformerpublic String[] getExtraRequestFields()
DocTransformerSolrIndexSearcher but may or may not be returned in the final
QueryResponseWritergetExtraRequestFields in class DocTransformerpublic void transform(SolrDocument doc, int docid)
DocTransformerDocTransformer.needsSolrIndexSearcher()
method must return truetransform in class DocTransformerdoc - The document to alterdocid - The Lucene internal doc id, or -1 in cases where the doc did not come from the indexDocTransformer.needsSolrIndexSearcher()Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.