How do I create a spacial index in neo4j using only cypher?

Dr Joe

I want to play with neo4j and spacial indexes. I can't find any documentation that demonstrates how to do this through cypher, only through the REST API.

Is it possibly to create spacial indexes through Cypher, say in the neo4j web console?

Stefan Armbruster

There is currently no way to create a spatial index using Cypher. You can either use java API or a REST call, see docs at http://neo4j-contrib.github.io/spatial/#rest-api-create-a-spatial-index for details. Since Neo4j browser allows to send HTTP POST you can type there:

:POST /db/data/index/node {"name":"geom", "config": 
  {"provider":"spatial", "geometry_type":"point", "lat":"lat", "lon":"lon"}
}

Alternatively you can use the index command within neo4j-shell.

Update for Neo4j 3.0

Neo4j Spatial for 3.0 provides stored procedures to manage the spatial index - and therefore everything can be done through cypher. See https://github.com/neo4j-contrib/spatial/blob/master/src/main/java/org/neo4j/gis/spatial/procedures/SpatialProcedures.java. Note: this version is not yet released, so you have to build from source yourself.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how to find ratings only to movie nodes in neo4j using cypher

From Dev

How to show only the nodes connected to the ones selected using Cypher of Neo4J?

From Dev

How to create a one-many relationship in neo4j using cypher query language

From Dev

Naming a Index using cypher for neo4j 2.0

From Dev

Neo4j: How do I delete a specific relationship with cypher?

From Dev

Neo4j: how do I delete all duplicate relationships in the database through cypher?

From Dev

How do I ignore the yield value from a java stored procedure in cypher (neo4j)?

From Dev

How do I ignore the yield value from a java stored procedure in cypher (neo4j)?

From Dev

How to do Complex sub queries using cypher queries in Neo4j

From Dev

neo4j Cypher Create relationship using proprieties

From Dev

neo4j Cypher Create relationship using proprieties

From Dev

How to create multiple nodes with cypher in neo4j

From Dev

How to create unique CONSTRAINT to relationship by neo4j cypher?

From Dev

How to return random records in Neo4j using Cypher?

From Dev

How to "replace" a relationship in Neo4j using Cypher?

From Dev

How to query collection using cypher in neo4j?

From Dev

I want to create nodes using neo4j in java through and also use schema and index

From Dev

How do I execute this cypher query (its JSON) over PHP curl to Neo4j's REST API?

From Dev

Neo4j Cypher: If you create multiple elements, you can only create one of each

From Dev

How do I create relationships from substrings in Neo4J

From Dev

How do I create a relationship in neo4j between two nodes?

From Dev

How do I create a node with Label via REST API in Neo4j 2.0

From Dev

How do I create a Neo4j relationship via the rails console?

From Dev

Neo4j, Cypher: Conditional Create

From Dev

How to create index on relationship type (neo4j)

From Dev

How to create Spatical Index in Neo4j?

From Dev

Neo4j's Cypher : create 1-to-n relationships only when populating database

From Dev

How do I list all labels in my neo4j database using the java api?

From Dev

Neo4j cypher: can I use a scalar function as index expression?

Related Related

  1. 1

    how to find ratings only to movie nodes in neo4j using cypher

  2. 2

    How to show only the nodes connected to the ones selected using Cypher of Neo4J?

  3. 3

    How to create a one-many relationship in neo4j using cypher query language

  4. 4

    Naming a Index using cypher for neo4j 2.0

  5. 5

    Neo4j: How do I delete a specific relationship with cypher?

  6. 6

    Neo4j: how do I delete all duplicate relationships in the database through cypher?

  7. 7

    How do I ignore the yield value from a java stored procedure in cypher (neo4j)?

  8. 8

    How do I ignore the yield value from a java stored procedure in cypher (neo4j)?

  9. 9

    How to do Complex sub queries using cypher queries in Neo4j

  10. 10

    neo4j Cypher Create relationship using proprieties

  11. 11

    neo4j Cypher Create relationship using proprieties

  12. 12

    How to create multiple nodes with cypher in neo4j

  13. 13

    How to create unique CONSTRAINT to relationship by neo4j cypher?

  14. 14

    How to return random records in Neo4j using Cypher?

  15. 15

    How to "replace" a relationship in Neo4j using Cypher?

  16. 16

    How to query collection using cypher in neo4j?

  17. 17

    I want to create nodes using neo4j in java through and also use schema and index

  18. 18

    How do I execute this cypher query (its JSON) over PHP curl to Neo4j's REST API?

  19. 19

    Neo4j Cypher: If you create multiple elements, you can only create one of each

  20. 20

    How do I create relationships from substrings in Neo4J

  21. 21

    How do I create a relationship in neo4j between two nodes?

  22. 22

    How do I create a node with Label via REST API in Neo4j 2.0

  23. 23

    How do I create a Neo4j relationship via the rails console?

  24. 24

    Neo4j, Cypher: Conditional Create

  25. 25

    How to create index on relationship type (neo4j)

  26. 26

    How to create Spatical Index in Neo4j?

  27. 27

    Neo4j's Cypher : create 1-to-n relationships only when populating database

  28. 28

    How do I list all labels in my neo4j database using the java api?

  29. 29

    Neo4j cypher: can I use a scalar function as index expression?

HotTag

Archive