public static final class DocTransformer.NoopFieldTransformer extends DocTransformer
DocTransformer.NoopFieldTransformer
context
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, transform
public NoopFieldTransformer()
public NoopFieldTransformer(String field)
public String getName()
getName
in class DocTransformer
public String[] getExtraRequestFields()
DocTransformer
SolrIndexSearcher
but may or may not be returned in the final
QueryResponseWriter
getExtraRequestFields
in class DocTransformer
public void transform(SolrDocument doc, int docid)
DocTransformer
DocTransformer.needsSolrIndexSearcher()
method must return truetransform
in class DocTransformer
doc
- 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.