Apache solr将数据附加到字段中


Apache solr appending the data in a field

我正在使用 curl 中的这个命令在 Apache solr 中索引我的数据

curl "http://localhost:8983/solr/update/extract?literal.id=doc1&uprefix=attr_&fmap.content=attr_content&commit=true" -F "myfile=@/home/ww.pdf"

运行此命令后,我可以向attr_contents属性添加更多内容吗?

当前版本的 Solr 中无法进行就地更新(仅更改现有记录的一个字段)。您将需要重新索引整个文档。

但是,如果要在索引富文档(如 PDF)时设置字段,请使用 literal.my_field=some_val 。您在包含的命令中以这种方式设置id