我使用DIH将数据从sybase数据库加载到Solr。到目前为止一切都很顺利。现在我决定,不再加载某个字段了。所以我删除了下面这行<field column="BibCode" name="bibcode"/>
在data-config.xml。然后我删除了所有的数据(/solr/update?stream)。Body =: and/solr/update?stream.body=),重新启动tomcat并开始完整导入。当我现在搜索时,字段bibcode仍然包含内容,我不明白它是从哪里来的。
我做错了什么?
您需要从data-config.xml
中的query
中删除该字段,或者从schema.xml
中删除该字段。
http://wiki.apache.org/solr/DataImportHandler A_shorter_data-config