Solr:deltaQuery/parentDeltaQuery/deltaImportQuery

标签 solr dataimporthandler

Solr 的 DataImportHandler 文档提供了实体查询属性的表。

enter image description here

这并不是非常具有描述性。有人可以在这里表达这些查询属性之间的区别和相互作用吗?我见过一些代码使用 deltaQuery 和 ParentDeltaQuery 来支持嵌套实体,我还见过其他代码使用 deltaQuery 和 deltaImportQuery。

选择其中一个而不是另一个的目的是什么?

最佳答案

我现在在 Solr Wiki 中看到它:

* The query gives the data needed to populate fields of the Solr document in full-import
* The deltaImportQuery gives the data needed to populate fields when running a delta-import
* The deltaQuery gives the primary keys of the current entity which have changes since the last index time
* The parentDeltaQuery uses the changed rows of the current table (fetched with deltaQuery) to give the changed rows in the parent table. This is necessary because whenever a row in the child table changes, we need to re-generate the document which has that field.

我在第一次通过时错过了这个解释,并希望该信息出现在我发布的表格中。奇怪的是,《Solr In Action》用了不到 1 页的 600 篇文章来解释如何使用 DataImportHandler 读取数据库。

关于Solr:deltaQuery/parentDeltaQuery/deltaImportQuery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39172796/

相关文章:

javascript - 具有带有重复键的 jQuery 构建的查询字符串的 AJAX 调用

solr - DataImportHandler 和部分更新

Solr + DIH + Tika : indexing huge amount of files, 如何处理删除的文件?

solr - 加快 solr 索引

Solr DataImportHandler - JOIN 与单独的实体

Solr 通配符搜索

java - Solr 触发器优化并检查 Java 代码的进度

solr - 理解 Solr Doc=

c# - 您可以使用 POST 在 Solr (/select) 中运行查询吗

mysql - Solr - 数据导入处理程序 - 完全导入 - 默认情况下 Clean=False?