anormcypher

Cypher Search Query Fuzzy query

左心房为你撑大大i 提交于 2019-12-12 03:08:13
问题 I want to use cypher to search, I have four movie enerties, forrest, sky, sky1, sky2 I want search sky I want it returns sky, sky1, sky2 My cypher is @Query("MATCH (movie:Movie) WHERE movie.title =~ '.*{0}.*' RETURN movie") or @Query("MATCH (movie:Movie) WHERE movie.title =~ '(?i).*{0}.*' RETURN movie") Neither of those works well: it return forrest, sky,sky1, sky2 no matter what I search (forrest or sky). What is wrong? controller @RequestMapping(value = "/movies", method = RequestMethod.GET

Spatial cypher queries don't work

折月煮酒 提交于 2019-12-11 00:54:48
问题 I configured the spatial plugin for Neo4j with the following REST API Calls: POST http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer { "layer" : "geom", "lat" : "lat", "lon" : "lon" } POST http://localhost:7474/db/data/index/node/ { "name" : "geom", "config" : { "provider" : "spatial", "geometry_type" : "point", "lat" : "lat", "lon" : "lon" } } I add spatial nodes with the following Scala code (embedded in a Play application): val mergeStatement = Cypher( """ MERGE

How to connect Blueprints to a remote neo4j server

≡放荡痞女 提交于 2019-12-07 19:00:59
问题 I am trying to merge two separate efforts. I have an application that currently uses anormcypher to talk to a remote neo4j database, and I am now developing an application that uses TinkerPop Blueprints . In Blueprints I can create a new embedded Neo4jGraph but I don't know how to connect it to my remote neo4j (community edition, not HA) server. I'm looking for the documentation that tells me how to configure that connection (host::port) . 来源: https://stackoverflow.com/questions/30405929/how