Skip to content

Loading…

Supplied index configuration does not match stored config #93

Closed
luanne opened this Issue · 1 comment

2 participants

@luanne

The following exception is thrown when I try to get a handle to the spatial index on an existing graph that contains the index already (or if you try to reload the index using .forNodes)

Exception in thread "main" java.lang.IllegalArgumentException: Supplied index configuration:
{geometry_type=point, lon=lon, provider=spatial, lat=lat}
doesn't match stored config in a valid way:
{geometry_type=point, lon=lon, provider=spatial, lat=lat}
for 'testspatial'
at org.neo4j.kernel.IndexManagerImpl.assertConfigMatches(IndexManagerImpl.java:156)
at org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java:137)
at org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerImpl.java:198)
at org.neo4j.kernel.IndexManagerImpl.getOrCreateNodeIndex(IndexManagerImpl.java:301)
at org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:289)
at TestSpatialIndexFetch.createSpatialIndex(TestSpatialIndexFetch.java:22)
at TestSpatialIndexFetch.main(TestSpatialIndexFetch.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

@luanne luanne closed this
@niranjan-uma-shankar

This fix is not available for 1.9. I downloaded neo4j spatial plugin here (this download link is given the spatial documentation here: https://github.com/neo4j/spatial#using-the-neo4j-spatial-server-plugin):

http://dist.neo4j.org.s3.amazonaws.com/spatial/neo4j-spatial-0.11-neo4j-1.9-server-plugin.zip

I am getting the same error as in the issue title, when I try to create a spatial index using the REST api as given here:

http://neo4j.github.io/spatial/#rest-api-create-a-spatial-index

I then deleted my graph.db directory and the creation of spatial index worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.