Skip to content

Conversation

@albig
Copy link
Collaborator

@albig albig commented Sep 16, 2019

This patch adds the feature to index GeoJSON to the Solr index and to use the Spatial Search feature of Solr.

The GeoJSON is expected in MODS: ./mods:subject/mods:cartographics/mods:coordinate

The Solr schema has to be expanded by the following field and fieldType:

<fieldType name="geojson" class="solr.SpatialRecursivePrefixTreeFieldType" spatialContextFactory="Geo3D" geo="true" planetModel="WGS84" format="GeoJSON"/>
<field name="geom" type="geojson" indexed="true" stored="true" required="false" multiValued="false"/>

That's all :-)

@albig albig merged commit 0f59b79 into kitodo:master Sep 17, 2019
@albig albig deleted the index-geofield branch July 19, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant