PDF files not being indexed
-
When I upload some PDF files, they were not being indexed and the search did not find them.
Looking at the code the add_post_meta routine was returning FALSE. i.e. it did not like the data.
Problem was the PDF file contained a long dash (em).
Also the parser was splitting some words at the end of the lines.To solve the problems, I added the following two line of code, before the call to save_doc_content in the class-qp-file-search.php routine.
$content = iconv(“UTF-8”, “ISO-8859-1//IGNORE”, $content); // clean up high number characters
$content = str_replace(“\\” . chr(13), “”, $content); // fix broken words at end of line
$this->save_doc_contents($document[‘post_id’], $content); // add content to postmetaHope this helps.
Roy
- The topic ‘PDF files not being indexed’ is closed to new replies.