You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Wick2804 <ch...@banctec.com> on 2010/03/03 12:08:18 UTC
Solr with Tika - Text ordering garbled.
We are loading PDF documents with OCR contentl ayer into Solr through Tika.
The load process appears to work fine and all of the words from the OCR
layer are stored as Text in Solr, and therfore searchable.
Our problem is that in the results returned from a search the words in the
'Text' field are not returned in the same order as those in the original OCR
content in the PDF. This means that the snippet does not accurately reflect
the original document content.
It appears that sections of text from the OCR are ordered randomly, so a
section from the bottom of the document appears alongside text from the top
of the dcument.
Additionally Tika strips out Carraige Return characters, but does not
replace then with anything so terms in separate paragraphs get joined
together.
Any help welcomed.
--
View this message in context: http://old.nabble.com/Solr-with-Tika---Text-ordering-garbled.-tp27766815p27766815.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr with Tika - Text ordering garbled.
Posted by Chris Hostetter <ho...@fucit.org>.
: Our problem is that in the results returned from a search the words in the
: 'Text' field are not returned in the same order as those in the original OCR
: content in the PDF. This means that the snippet does not accurately reflect
: the original document content.
You're probably going to want to test this out with Tika directly (remove
Solr from the equation) to verify that Solr isn't bungling the Tika
output in some way and then bring this up on the tika-users list (although
if using Tika directly works fine, it is a Solr bug and pelase let us
know)
I suspect this has to do with how the PDF files are getting generated by
your OCR software, and what order the "sections" (or whatever the PDF
vernacular is) are being added in ... i know I've seen Tika parse PDFs w/o
the types of problems you are describing.
-Hoss