Class GeoTransformerFactory
- java.lang.Object
-
- org.apache.solr.response.transform.TransformerFactory
-
- org.apache.solr.response.transform.GeoTransformerFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
public class GeoTransformerFactory extends TransformerFactory
This DocumentTransformer will write aShape
to the SolrDocument using the requested format. Supported formats include:- GeoJSON
- WKT
- Polyshape
- You want to return a format different than the stored encoding (WKT vs GeoJSON)
- The
Shape
is stored in aValueSource
, not a stored field - the value is not stored in a format the output understands (ie, raw GeoJSON)
-
-
Field Summary
-
Fields inherited from class org.apache.solr.response.transform.TransformerFactory
defaultFactories, defaultUserArgs
-
-
Constructor Summary
Constructors Constructor Description GeoTransformerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocTransformer
create(String display, SolrParams params, SolrQueryRequest req)
-
Methods inherited from class org.apache.solr.response.transform.TransformerFactory
init
-
-
-
-
Method Detail
-
create
public DocTransformer create(String display, SolrParams params, SolrQueryRequest req)
- Specified by:
create
in classTransformerFactory
-
-