Index by attached – woocommerce

Tagged:
  • wpsolr
    Keymaster
    3 years, 1 month ago #25456

    Be careful with the .htaccess, there is probably a reason to protect those folders.
    Do you index PDFs with Algolia?

    Piteus
    Participant
    3 years, 1 month ago #25457

    Nope, i can’t save the product or send data, if i try to save I get this error https://postimg.cc/RWchb342 if i try to “send your data” it starting to loading endlessly

    wpsolr
    Keymaster
    3 years, 1 month ago #25458

    What is the index you created? (Elasticsearch, Solr, Algolia)

    Piteus
    Participant
    3 years, 1 month ago #25459

    Algolia

    wpsolr
    Keymaster
    3 years, 1 month ago #25460

    Algolia does not provide a direct way to index PDFs: https://www.algolia.com/doc/faq/searching/can-i-index-pdfs-word-and-other-types-of-documents/

    With Elasticsearch and Solr, the PDF indexing happens in two phases:
    – Extraction of the text from the PDF (or .docx, .xls, …) thanks to Apache Tika (see https://www.wpsolr.com/guide/actions-and-filters/index-embedded-files/) which is included in Elasticsearch and Solr
    – Indexing of the extracted text

    Algolia does not provide the extraction layer (the Tika layer). Therefore WPSOLR cannot send the PDF text to the Algolia index.

    Piteus
    Participant
    3 years, 1 month ago #25461

    Ok, now i’ve set up Elasticsearch, but i’ve a new error 🙁

    (WPSOLR) Error while indexing this post type:
    Error on embedded url “https://dev.domani.com/wp/wp-content/uploads/woocommerce_uploads/2021/03/sample.pdf” of post_id 14. {“error”:{“root_cause”:[{“type”:”parse_exception”,”reason”:”No processor type exists with name [attachment]”,”processor_type”:”attachment”}],”type”:”parse_exception”,”reason”:”No processor type exists with name [attachment]”,”processor_type”:”attachment”},”status”:400}

    wpsolr
    Keymaster
    3 years, 1 month ago #25462
    Piteus
    Participant
    3 years, 1 month ago #25463

    Ok thanks, new error 🙁

    (WPSOLR) Error while indexing this post type:
    failed to parse field [categories] of type [text] in document with id ’11’. Preview of field’s value: ‘{file=https://dev.domain.com/wp/wp-content/uploads/woocommerce_uploads/2021/03/sample.pdf, name=sample, id=580abb80-8d32-437e-81e9-2c957a4bc3c2}’

    wpsolr
    Keymaster
    Piteus
    Participant
    3 years, 1 month ago #25466

    I’m not using AWS, i’m using elastic, everything works correctly except for the error I told you before and then the indexing inside the file

    wpsolr
    Keymaster
    3 years, 1 month ago #25471

    Can you check for more details on the error in your debug.log ?

    Piteus
    Participant
    3 years, 1 month ago #25472

    I’ve reset wordpress and reistalled all plugin, now it works perfectly, thank you so much.
    Last question: if I buy pro version can i still use the version with this feature?

    wpsolr
    Keymaster
    3 years, 1 month ago #25473

    Great.

    If you buy the plugin, just install this fix instead, and activate it with your subscription license.

    When you will update your WPSOLR plugin in the future, the next release will include the fix.

    Piteus
    Participant
    3 years, 1 month ago #25474

    Ok, thanks again for your availability

    Piteus
    Participant
    3 years, 1 month ago #25674

    Hello again, i’ve bought license, and as agreed i’m using the version that you send me here, i noticed a bug:
    when in woocommerce->All products I select checkbox of product and i delete them by group action/bulk action, wpsolr doesn’t delete all attached files from the index

Viewing 15 posts - 16 through 30 (of 34 total)

You must be logged in to reply to this topic.