Skip to content

xwiki-contrib/module-spatial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an experimental module.

Requirements

  • XWiki 4.4-SNAPSHOT + (post lucene/solr 4.0.0 migration)

Installation

  • Build xwiki-platform-search-solr-api from https://github.com/jvelo/xwiki-platform/tree/feature-spatial branch and replace the one in your installation by the built artifact
  • Copy the JTS jar in your WEB-INF/lib/
  • Build this module and copy it in your WEB-INF/lib/
  • Add the following to your solr schema.xml (or copy the one from src/main/resources in jvelo:feature-spatial
<fieldType name="geohash" class="solr.SpatialRecursivePrefixTreeFieldType"
           spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory"
           distErrPct="0.025"
           maxDistErr="0.000009"
           units="degrees" />

<field name="property_geo"  type="geohash"  indexed="true" stored="true"  multiValued="true" />

About

Experimental spatial support for XWiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages