如何在Apache Solr实现索引的索引BLOB字段? [英] How to index blob field in Apache Solr indexing?

查看:181
本文介绍了如何在Apache Solr实现索引的索引BLOB字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Apache Solr实现索引我的数据,我有我想得太索引BLOB字段......但我不知道是什么在scheme.xml被宣布的字段类型....

I am using Apache Solr to index my data, I have blob field which I want to be indexed too...but I dont know what is the fieldType to be declared in the 'scheme.xml'....

我试着以下内容:

字段名=抽象类型=文本收录=真所需=真预存=真

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

但是当我试图寻找那么该字段显示为:

but when I tried to search then that field is shown as :

ID,摘要,标题,价格,publishedDate

id, abstract, title, price, publishedDate

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

1, [B@1e9b7b2, Spain Consumer, 3795.0, 2009-01-19T18:30:00Z

抽象是我一滴提起这不过是大串......,我想在同一领域文本搜索,但是当我收录它,然后它显示像这样...
请建议我,我该怎么办?

'abstract' is my blob filed which is nothing but big string...and I wanted text search on same field but when I indexed it then it is showing like this... please suggest me what can I do?

表达感谢提前...

推荐答案

Solr的常见问题提到本作的BLOB <一个href=\"http://wiki.apache.org/solr/DataImportHandlerFaq#Blob_values_in_my_table_are_added_to_the_Solr_document_as_object_strings_like_B.401f23c5\" rel=\"nofollow\">http://wiki.apache.org/solr/DataImportHandlerFaq#Blob_values_in_my_table_are_added_to_the_Solr_document_as_object_strings_like_B.401f23c5

Solr FAQ mentions this for the blob http://wiki.apache.org/solr/DataImportHandlerFaq#Blob_values_in_my_table_are_added_to_the_Solr_document_as_object_strings_like_B.401f23c5

您可以检查<一href=\"http://www.lucidimagination.com/devzone/technical-articles/searching-rich-format-documents-stored-dbms\"相对=nofollow>丰富的搜索-格式的文档存储的数据库管理系统

有是一个对促进该BlobTransformer JIRA问题,但不似乎要把它变成code。您可以参考该补丁,并挑选可能是你使用的变压器。

There was an JIRA issue for contributing the BlobTransformer, but doesn't seem to make it into the Code. You can refer the patch and pick the transformer for your use probably.

不知道其改名/重构/在当前版本中改名为不同的。

Not sure if its renamed/refactored/renamed differently in the Current versions.

这篇关于如何在Apache Solr实现索引的索引BLOB字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆