【问题标题】:Passing additional parameters to be indexed as URL parameters传递要作为 URL 参数索引的附加参数
【发布时间】:2011-11-15 18:56:52
【问题描述】:

来自Indexing office formats with a custom field type schema的后续问题

正在将文件上传到 Solr。

我现在需要将其他参数,如“modified”或“mimetype”(在架构中定义)作为 URL 参数传递。所有示例都使用“literal.id”来指定主 ID 每个文档的。要索引的附加参数必须以“literal”为前缀。以及为了被正确索引?

【问题讨论】:

    标签: solr


    【解决方案1】:

    顺序无关紧要,但需要以文字为前缀。

    例如literal.title=测试

    curl "http://localhost:8983/solr/update/extract?literal.id=2&literal.title=Test&commit=true&fmap.content=text" -F "myfile=@1.pdf"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-27
      • 2010-12-18
      相关资源
      最近更新 更多