繁体   English   中英

通过java获取neo4j中具有相同索引值的所有节点?

[英]Get all the nodes with same index value in neo4j by java?

如何通过Java获取neo4j中具有相同索引值的所有节点?

例如,我在节点的name属性上有一个索引,并且两个节点都具有name="alice" 我想在基于索引的Java中获取两个节点?

您是否检查过索引文件? http://docs.neo4j.org/chunked/stable/indexing.html

IndexManager index = graphDb.index();
Index<Node> idx= index.forNodes( "nodes" ); //this is the name of your index
IndexHits<Node> hits = idx.get( "name", "alice" );

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM