Lucene Neo4j-如何使用参数使用executeCypher制定此查询
我有一个这样的问题Lucene Neo4j-如何使用参数使用executeCypher制定此查询,lucene,neo4j,Lucene,Neo4j,我有一个这样的问题 start n = node:node_auto_index('ids:"123", "456" ... ') return n 这里123456是作为单个参数{list}的键列表。现在,当我尝试用Java编写这篇文章时 String q = " START n=node:node_auto_index('key:{ids}') return n " Map<String, Object> map = new HashMap<String, Object
start n = node:node_auto_index('ids:"123", "456" ... ') return n
这里123456是作为单个参数{list}的键列表。现在,当我尝试用Java编写这篇文章时
String q = " START n=node:node_auto_index('key:{ids}') return n "
Map<String, Object> map = new HashMap<String, Object>();
map.put("ids", keyList); // keyList is a list of strings
String q=“START n=node:node\u auto\u index('key:{ids}')返回n”
Map Map=newhashmap();
map.put(“id”,键列表);//keyList是一个字符串列表
但是调用graphstoreclient.executeCypher(q,map)
失败了,出现了解析错误,你能告诉我关于这个的任何文档/正确的语法吗
PS-此查询在控制台上运行良好。由于您提供了lucene查询字符串,请参数化整个字符串:
String q = " START n=node:node_auto_index({ids}) return n "
Map<String, Object> map = new HashMap<String, Object>();
map.put("ids", keyList);
String q=“START n=node:node\u auto\u index({ids})返回n”
Map Map=newhashmap();
map.put(“id”,键列表);
键列表现在应该看起来像ids:“123”、“456”…