No result when searching for a keyword in an uploaded PDF

Home Forums Product Support Forums Ajax Search Pro for WordPress Support No result when searching for a keyword in an uploaded PDF

This topic contains 26 replies, has 2 voices, and was last updated by KeskenyNyomda72 KeskenyNyomda72 4 years, 7 months ago.

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #23900
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    Hello,
    Unfortunately our site is an intranet, so it not helps if I give you the URL and login.

    The thing is we bought the pro version to use it to search in attachments but it is not searching in the uploaded PDF.
    I disabled ajax search lite and imported its form to pro verison. After that I configured the pro version to searc and index attachments too.
    I attached the screenshots of our configuration. Please kindly check if it is OK or not. We dont get any error message. All we can see the search bar says “Nothing Found Sorry, but nothing matched your search terms. Please try again with some different keywords.”

    We are waiting for your response.

    Regards,

    Ben

    Attachments:
    You must be logged in to view attached files.
    #23909
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for the details, I see a problem there.

    On the first screenshot, the regular engine is chosen for the attachment search, so the indexed keywords have no effect whatsoever. To fix that, change this option: https://i.imgur.com/5bwnHXa.png
    That should do the trick.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23914
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    Hi Ernesto.
    Thank you for the quick answer.
    I made the changes what you sent to me via imgur but there is still no result when search for “Multi Faktor” phrase.
    I made screenshots, please kindly check them.
    Best,
    Ben

    Attachments:
    You must be logged in to view attached files.
    #23919
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank you.

    Okay, I noticed you mainly use the non-live search feature. In that case, make sure that the search override is also activated. Does the live search return any results when enabled? (you can test it in the preview window as well on the back-end)

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23920
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    Hello,
    Overriding is switched on and yes we have results for everything, except words and phrases in the attachments.
    I attached screenshots again.
    Thanks,
    Ben

    Attachments:
    You must be logged in to view attached files.
    #23923
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    In that case I suspect the file contents might not be indexed. Are the attachments returned correctly when searching their titles?

    If so, then on the index table settings, try changing the PDF indexing methord from ‘Auto’ to first ‘PDF2Txt’, then indexing the documents again: https://i.imgur.com/T8Z7N1I.png
    Then check if the total keywords count has increased, and try to search for the file now.
    If no results still, try this again, but with the ‘Smalot parser‘ option.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23925
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    In that case I suspect the file contents might not be indexed. Are the attachments returned correctly when searching their titles?
    Yes there was

    If so, then on the index table settings, try changing the PDF indexing methord from ‘Auto’ to first ‘PDF2Txt’, then indexing the documents again: https://i.imgur.com/T8Z7N1I.png
    Then check if the total keywords count has increased, and try to search for the file now.
    If no results still, try this again, but with the ‘Smalot parser‘ option.
    I tried pdf2text: number of keywords inreased
    I tried smalot as well: number of keyword decreased compared to pdf2text
    Neither had not search result.

    #23927
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Then it is very likely not indexed, but I am not sure. Can you please arrange temporary FTP and back-end access? I will have to debug the code, and see your configuration as well as the front-end in order to be able to tell where the issue is.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23932
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    Hello Ernest,
    I can not give you an FTP acces since its a cluster in our internal server.
    Can you open this? https://tudasbazis.nyomda.hu/wp-login.php
    If yes, I can give you an access to our back and. If no, I can not.
    Regards,
    Ben

    #23936
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Ben,

    Unfortunately no, I cannot access that URL.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23937
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    What would you recommend?

    #23938
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hmm, could you upload one of the PDF files here, that cannot be found by the content? I will then try to upload it to a test server and see how it is indexed.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23940
    KeskenyNyomda72
    KeskenyNyomda72
    Participant
    #23941
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank you, that worked.

    I uploaded and indexed the document on my local XAMPP environment, and it seems to be working okay, I did a few test searches:
    – Test 1: https://i.imgur.com/rwNfwjP.png
    – Test 2: https://i.imgur.com/uimJM7B.png
    – Test 3: https://i.imgur.com/HeKI4cd.png

    The PDF is then okay, that is good news. Now the problem is either with the server not being able to run the indexing script, or there is something wrong with the search configuration.

    Could you please create a new search instance, and only enable the search in attachments option, and change nothing else: https://i.imgur.com/1iaLwsm.png
    Then do a few test phrases to see if the files are returned. If so, then there is only a configuration related issue with the other search bar.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23942
    KeskenyNyomda72
    KeskenyNyomda72
    Participant

    I did, now I have two instances. Should I delete the other one? Should I do an other index?
    I didnt change anything else but I still dont have search results.

    Check the screenshots please.

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 1 through 15 (of 27 total)

The topic ‘No result when searching for a keyword in an uploaded PDF’ is closed to new replies.