Index/Search PDF content with Solr

爷,独闯天下 提交于 2020-01-03 06:15:43

问题


I'm experimenting with Solr and I've encountered this issue:

I've indexed a PDF document and when I search for ":" in the admin console, the PDF is listed. However when I search for content within the PDF I get no results.

To index the document, I used copy-and-paste code from: http://wiki.apache.org/solr/ContentStreamUpdateRequestExample


回答1:


use this command

curl "http://localhost:8983/solr/update/extract?stream.file=/home/fstl/apache-solr-3.2.0/example/exampledocs/pup.pdf&stream.contentType=application/pdf&literal.id=esc.doc&commit=true" 


来源:https://stackoverflow.com/questions/5947157/index-search-pdf-content-with-solr

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