How to index blob field in Apache Solr indexing?

六眼飞鱼酱① 提交于 2019-12-11 11:52:04

问题


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'....

I tried following:

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

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

id, abstract, title, price, publishedDate

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?

thanking in advance...


回答1:


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

You can check for searching-rich-format-documents-stored-dbms

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.



来源:https://stackoverflow.com/questions/11426784/how-to-index-blob-field-in-apache-solr-indexing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!