我想在 solr 中索引几个 csv 文件并使用 sunburnt 为 solr 构建搜索引擎,
from sunburnt import SolrInterface
si = sunburnt.SolrInterface("http://localhost:8985/solr/practice")
我收到一个错误:
Key error: id
我正在使用 python 2.7.11,Solr - 6.1,晒伤 0.6
我在 stackoverflow 中找到了相同的帖子,但它只有一个答案,而且它的链接现在不起作用。
我被困住了。请指导我该怎么做。我必须构建可以搜索多个字段和多个文件的搜索引擎。我发现晒伤最适合我的情况。有什么建议么?