【问题标题】:How to index blob field in Apache Solr indexing?如何在 Apache Solr 索引中索引 blob 字段?
【发布时间】:2012-07-11 06:28:21
【问题描述】:

我正在使用 Apache Solr 来索引我的数据,我也有想要索引的 blob 字段...但我不知道要在 'scheme.xml' 中声明的 fieldType 是什么....

我尝试了以下操作:

" field name="abstract" type="text" indexed="true" stored="true" required="true" "

但是当我尝试搜索时,该字段显示为:

id、摘要、标题、价格、发布日期

1,[B@1e9b7b2,西班牙消费者,3795.0,2009-01-19T18:30:00Z

'abstract' 是我的 blob 文件,它只是大字符串......我想在同一个字段上进行文本搜索,但是当我对其进行索引时,它会显示如下...... 请建议我该怎么做?

提前致谢……

【问题讨论】:

    标签: apache solr indexing dih


    【解决方案1】:

    Solr 常见问题解答为 blob http://wiki.apache.org/solr/DataImportHandlerFaq#Blob_values_in_my_table_are_added_to_the_Solr_document_as_object_strings_like_B.401f23c5 提到了这一点

    您可以查看searching-rich-format-documents-stored-dbms

    有一个 JIRA issue 用于贡献 BlobTransformer,但似乎没有将其纳入代码。您可以参考补丁并选择适合您使用的变压器。

    不确定它在当前版本中的重命名/重构/重命名是否不同。

    【讨论】:

      猜你喜欢
      • 2013-07-28
      • 2016-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多