2017-08-07 39 views
1

当数据库仅为250KB时,neo4j2elasticsearch可在我的机器上运行。但数据库大约2GB。它不会再同步。我不知道在配置文件中这些参数是因为:Elasticsearch无法同步来自neo4j的2GB数据库与GprahAware

#optional, size of the in-memory queue that queues up operations to be synchronised to Elasticsearch, defaults to 10000 
com.graphaware.module.ES.queueSize=10000 

#optional, size of the batch size to use during re-initialization, defaults to 1000 
com.graphaware.module.ES.reindexBatchSize=2000 

我想知道什么是内存队列长度10000,以及如何设置基于我的数据库大小什么参数估计的单元。

这里是调试文件: neo4j debug.log failure loading

的数据库重新初始化但也有在elasticsearch数据库只空的Neo4j指数关系/ Neo4j的索引节点索引

刚有关信息,这里是成功的250KB数据库加载的调试文件: neo4j debug.log successful loading 看起来像重新索引节点... 2GB数据库加载过程中缺少步骤。

回答

0

日志不具有行表示将重新索引,你配置:

com.graphaware.module.ES.initializeUntil= 

要时间戳权证重新索引上启动?否则,它只会索引新的数据。它在https://github.com/graphaware/neo4j-to-elasticsearch底部解释说:

...为了触发(重新)索引,即发送每一个 应该被索引时的Neo4j重启Elasticsearch节点,你必须 手动干预。 ..

因此,尝试创建一个新的节点,看看同步是否适用于新的东西,以消除这种情况(最常见的)。