Legacy Indexing/Au​​to Indexing 与 Neo4j 中新索引方法的区别 [英] The difference between Legacy Indexing/Auto Indexing and the new indexing approach in Neo4j

查看:29
本文介绍了Legacy Indexing/Au​​to Indexing 与 Neo4j 中新索引方法的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解旧索引方法和新索引方法之间的区别,所以也许有人可以为我澄清这些要点.我唯一关心的是它与 Java API 的关系,而不是 Cypher 查询.

I'm having trouble understanding the difference between the legacy indexing approach and the new indexing approach so perhaps someone could clarify these points for me. My only concern is really how it relates to the Java API and not Cypher queries.

子问题

1) 旧版索引与自动索引是否相同?

1) Is Legacy Indexing the same thing as auto-indexing?

2) 如果不使用自动索引,那么每次向图中添加节点时都必须指定是否应该对其进行索引,这是真的吗?

2) Is it true that if you are not using auto-indexing then every time you add a node to the graph you must specify whether or not it should be indexed?

3) 我是否认为您可以从 Java api 启用/禁用所有自动索引而不必弄乱配置文件?

3) Am I correct in believing you can enable/disable auto-indexing all from the Java api without having to mess with the configuration files?

4) 下面这行取自 http://docs.neo4j 是什么意思.org/chunked/里程碑/indexing.html

本章重点介绍如何使用手动索引和自动索引.从 Neo4j 2.0 开始,这不是 Neo4j 中索引数据的首选方法,我们建议在数据库模式中定义索引.

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

I'm using the Java API

推荐答案

  1. 是的,自动索引是一种遗留索引.
  2. 是的.
  3. 是的,您可以嵌入.在此处查看示例:Neo4j 嵌入式全文自动节点索引
  4. 新的模式索引"是基于标签定义索引的首选方式.遗留索引是……旧的方法.如果需要,您可以同时使用它们.

这篇关于Legacy Indexing/Au​​to Indexing 与 Neo4j 中新索引方法的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆