• Resolved rweil55

    (@rweil55)


    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 postmeta

    Hope this helps.
    Roy

    • This topic was modified 8 years, 4 months ago by rweil55.
Viewing 1 replies (of 1 total)
  • Plugin Author mndpsingh287

    (@mndpsingh287)

    Hey rweil55,

    Thanks for contacting the support. We will resolve this issue in next version that we are launching.

    Thanks again,
    Mandeep Singh
    Support Team

Viewing 1 replies (of 1 total)
  • The topic ‘PDF files not being indexed’ is closed to new replies.