Class GeoTransformerFactory

  • All Implemented Interfaces:
    TransformerFactory.FieldRenamer, NamedListInitializedPlugin

    public class GeoTransformerFactory
    extends TransformerFactory
    implements TransformerFactory.FieldRenamer
    This DocumentTransformer will write a Shape to the SolrDocument using the requested format. Supported formats include:
    • GeoJSON
    • WKT
    • Polyshape
    For more information see: spatial4j/

    The shape is either read from a stored field, or a ValueSource.

    This transformer is useful when:

    • You want to return a format different than the stored encoding (WKT vs GeoJSON)
    • The Shape is stored in a ValueSource, not a stored field
    • the value is not stored in a format the output understands (ie, raw GeoJSON)