我无法理解旧索引方法和新索引方法之间的区别,所以也许有人可以为我澄清这些要点。我唯一关心的是它与 Java API 而不是 Cypher 查询的关系。
子问题
1) 旧版索引与自动索引是一回事吗?
2) 如果您不使用自动索引,那么每次向图中添加节点时都必须指定它是否应该被索引,这是真的吗?
3) 我认为您可以从 Java api 启用/禁用所有自动索引而不必弄乱配置文件,我是否正确?
4) 下面这行是什么意思,摘自 http://docs.neo4j.org/chunked/milestone/indexing.html
This chapter focuses on how to use the Manual Indexes and Autoindexes. As of Neo4j 2.0, this is not the favored method of indexing data in Neo4j, instead we recommend defining indexes in the database schema.
注意:
我正在使用 Java API
最佳答案
- 是的,自动索引是一种遗留索引。
- 是的。
- 是的,您可以嵌入。请在此处查看示例:Neo4j Embedded Fulltext Automatic Node Index
- 新的“架构索引”是基于标签定义索引的首选方式。遗留索引是……旧的方法。如果需要,您可以同时使用它们。
关于java - Legacy Indexing/Auto Indexing 与 Neo4j 中的新索引方法之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17176098/