Class TransformerFactory
java.lang.Object
org.apache.solr.response.transform.TransformerFactory
- All Implemented Interfaces:
NamedListInitializedPlugin
- Direct Known Subclasses:
ChildDocTransformerFactory,CoreAugmenterFactory,DocIdAugmenterFactory,ElevatedMarkerFactory,ExcludedMarkerFactory,ExplainAugmenterFactory,GeoTransformerFactory,RawValueTransformerFactory,ShardAugmenterFactory,SubQueryAugmenterFactory,ValueAugmenterFactory
New instance for each request
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheTransformerFactory.FieldRenamerinterface should be implemented by anyTransformerFactorycapable of generating transformers that might rename fields, and should implementTransformerFactory.FieldRenamer.create(String, SolrParams, SolrQueryRequest, Map, Set)in place ofcreate(String, SolrParams, SolrQueryRequest)(with the latter method overridden to throwUnsupportedOperationException). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DocTransformercreate(String field, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req) voidinit(org.apache.solr.common.util.NamedList<?> args) initwill be called just once, immediately after creation.
-
Field Details
-
defaultUserArgs
-
defaultFactories
-
-
Constructor Details
-
TransformerFactory
public TransformerFactory()
-
-
Method Details
-
init
public void init(org.apache.solr.common.util.NamedList<?> args) Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Specified by:
initin interfaceNamedListInitializedPlugin- Parameters:
args- non-null list of initialization parameters (may be empty)
-
create
public abstract DocTransformer create(String field, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
-