Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

Spatial enhancements for Solr on Docker

Full spatial-ready Solr docker image from the YAGA Development-Team based on the official Solr Docker image.

This image enhance Solr with the JTS Topology Suite

Supported tags

  • 6.3.0, 6.3
  • 6.3.0-alpine, 6.3-alpine
  • 6.4.1, 6.4, 6, latest
  • 6.4.1-alpine, 6.4-alpine, 6-alpine, alpine

Note: prior to Solr 6, the org.locationtech.spatial4j part was com.spatial4j.core and there used to be no convenience JTS alias. Take a look at this page for further information

Configure your schema

<?xml version="1.0" encoding="UTF-8" ?>
<schema name="my-schema" version="1.6">
    <!-- other fieldType declarations -->
    <fieldType name="location_rpt"
        geo="true"
        class="solr.SpatialRecursivePrefixTreeFieldType"
        distanceUnits="degrees"
        spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory" />

    <!-- other field configurations -->
    <field name="geom" type="location_rpt" indexed="false" stored="true" required="false"/>
    <!-- values for indexed, stored and required are just an example... -->
</schema>

This schema.xml is just an example. The important line is the one with spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory"!

More information

Please take a look at the official docker image of Solr for any additional information. This is the base for this image.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

About

A full spatial-ready version of the dockers original solr image

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.