2010/11/25 Peter Neubauer <peter.neuba...@neotechnology.com>

> Hi all,
> Craig and me thought of registering Neo4j-Spatial as a new
> IndexProvider, so you can set up a NodeIndex with all the geographic
> hints and setup you need, and then just index geometry nodes and ask
> spatial queries over it in order to make the component better usable,
> hopefully as easy as Lucene.
>
> Now, upon implementing
>
> https://github.com/neo4j/neo4j-spatial/blob/master/src/main/java/org/neo4j/gis/spatial/indexprovider/SpatialIndexProvider.java
> and registering it like
>
> https://github.com/neo4j/neo4j-spatial/blob/master/src/main/resources/META-INF/services/org.neo4j.kernel.KernelExtension
> ,
> the test
> https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java
> is failing, saying that no index provider "spatial" was found.
> Anything wrong in the process?
>

Sounds great, and be sure to express any difficulties/shortcomings with the
API so that it can improved for these kinds of scenarios.

It may be that you have to make the constructor public (I don't know in what
way the service API uses reflection and all that). Also there's this
assumption that an IndexProvider provides its own data source. The spatial
index provider uses the graph itself (right?) so it could be a problem. Let
me look at and fix that, and then document how that's done for such a
scenario (hopefully tomorrow).


>
> Cheers,
>
> /peter neubauer
>
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org               - Your high performance graph database.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to