在Solr4中可以使用带有部分更新的DataImportHandler吗?我是否应该能够使用像下面这样的data-config.xml,并在不同的时刻导入两个实体,并获得包含两个数据的完整文档?
<document name="item">
<entity name="pricing" query="select * from prc">
<field column="ID" name="itemId" />
<field column="NM" name="itemName" />
<field column="default" name="defaultPrice" />
<field column="sale" name="salesPrice" />
</entity>
<entity name="tag" query="select * from tag">
<field column="ID" name="itemId" />
<field column="TAG" name="adminTag" />
</entity>
</document>发布于 2013-06-27 12:09:16
DIH不支持Solr部分更新。因此,您可能需要使用Solrj来完成此任务。
此外,对于多个实体,您可以将其指定为特定实体。
但是,这些多个实体将在Solr索引中作为单独的文档进行索引,而不是作为组合文档。如果你想要单个文档,你需要有一个子实体。
https://stackoverflow.com/questions/17327473
复制相似问题