【发布时间】:2010-08-04 09:12:47
【问题描述】:
Solr 1.4 数据导入处理程序的增量导入语法允许最多 4 个查询(查询、deltaImportQuery、deltaQuery 和 parentDeltaQuery),但我不清楚“查询”查询的用法。
在以下示例中,“查询”查询与不带 where 子句的 deltaImportQuery 执行相同。
<entity name="data-table" pk="id"
query="select id,Subject,Text,UserID,CreatedDate,TopicID,TopicType,EPiPageID,ForumID,Room1ID,Room1Name,LastModifiedDate from dbo.CustomForumPosts"
deltaImportQuery="select id,Subject,Text,UserID,CreatedDate,TopicID,TopicType,EPiPageID,ForumID,Room1ID,Room1Name,LastModifiedDate from dbo.CustomForumPosts where id='${dataimporter.delta.id}'"
deltaQuery="select id from dbo.CustomForumPosts where LastModifiedDate > '${dataimporter.last_index_time}'">
</entity>
我不明白为什么,或者是否需要“查询”查询——它似乎只是描述了这个增量的完整导入等价物。谁能解释一下?
【问题讨论】:
标签: solr