简体   繁体   English

尝试在Solr中索引PDF时发生ClassCastException ExtractingRequestHandler

[英]ClassCastException ExtractingRequestHandler while trying to index PDF in Solr

I'm facing some difficulty indexing PDF in Solr. 我在Solr中索引PDF时遇到了一些困难。 Initially I had a lot of JAR missing, which I included all (specially from "dist" and "contrib\\extraction" folder. But now when I try to index my PDF I'm facing this ClassCastException ExtractingRequestHandler. Have anyone encountered this before or have any idea what's going wrong? 最初,我缺少很多JAR文件,其中包括所有文件(特别是“ dist”和“ contrib \\ extraction”文件夹中的文件。)现在,当我尝试为PDF编制索引时,我遇到了这个ClassCastException ExtractingRequestHandler。知道发生了什么事吗?

在此处输入图片说明

Try putting solr-cell.jar in your classpath. 尝试将solr-cell.jar放入类路径中。 ExtractingRequestHandler class is inside solr-cell jar file. ExtractingRequestHandler类位于solr-cell jar文件中。

Put it under /webapp/lib folder followed by restart. 将其放在/ webapp / lib文件夹下,然后重新启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM