Take the 2-minute tour ×

Hi I have tried doing this with the binary distribution as well as compiled the source code my self. Tried running this with Apache Tomcat as well. But I am always getting the following error when I use a pdf file for indexing purposes. I am using post.jar provided in the example project with Solr.

SimplePostTool: version 1.3
SimplePostTool: POSTing file 4538a001.pdf
SimplePostTool: FATAL: Solr returned an error #400 Invalid UTF-8 middle byte 0xe
3 (at char #10, byte #-1)

I have also tried running this on both Win 7 (JDK 1.7) and Centos (1.6) as well.

I searched the internet and on the bug tracker found patched versions of Jetty jar files, but even after replacing those the problem still persists.

I would really appreciate help, since I am stuck here I cannot proceed forward with further tasks.


share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Solr updates are a specific XML format, so it is rejecting the PDF file.

You can configure an extracting request handler that will parse the PDF file, then process the extracted text as an update.

See: http://wiki.apache.org/solr/ExtractingRequestHandler

share|improve this answer
Thank you very much –  SarfarazSoomro Mar 30 '12 at 20:12
add comment

Your Answer


