Sending featured_image_url to Algolia?

Tagged:
  • mcl7
    Participant
    9 months, 2 weeks ago #37622

    I say featured_image_url specifically because this would cover category images as well. However, I do not see any clear method to send woocommerce product images to the index. I ask because there is a LOT of management tools within Algloia that are not very valuable unless the images are in the index. Not looking for image search capabilities. Just the need to see the images within the index (just any image attached to the post making me think featured_image_url is the best/easiest).

    wpsolr
    Keymaster
    9 months, 2 weeks ago #37648

    It’s an interesting point of view that some external tools could need images for catalog discovery.

    Added to roadmap WPSOLR 23.6.

    mcl7
    Participant
    8 months, 2 weeks ago #38462

    any chance of an early release of 23.6?

    wpsolr
    Keymaster
    8 months, 2 weeks ago #38464

    No, but I just rechecked the code, and it appears that if you activate the Federated search add-on, image thumbnails will be indexed.

    mcl7
    Participant
    8 months, 2 weeks ago #38472

    hmm. I tried this and I don’t see a field that includes the actual image path as needed.

    I do see a new field and another previously that stores the id’s of the images:

    _product_image_gallery_str [“99782,99783,99784”]
    _thumbnail_id_str [“99781”]

    However, neither of the above allows us to display the image within the Algolia UI’s (Merc Studio and the normal UI). We would need the absolute or relative paths to the image(s).

    images
    {
    thumbnail:
    { url: “https://mydomain.com/wp-content/uploads/2021/04/long-product-name-here-150×150.jpg”, width: 150, height: 150 }
    }

    Here is a screenshot of the options they give you when you click “Display Preferences” when viewing an index in the Algolia management UI.

    Screenshot-2024-01-05-at-9-26-45-AM

    wpsolr
    Keymaster
    8 months, 2 weeks ago #38473

    The image url shoul be stored in ‘post_thumbnail_href_str’

    (you need to reindex your data)

    mcl7
    Participant
    8 months, 2 weeks ago #38474

    Ok great, it works. thanks.

    wpsolr
    Keymaster
    8 months, 2 weeks ago #38475

    👍

    mcl7
    Participant
    8 months, 1 week ago #38483

    Final request on this. I noticed that even though the images are now available for each of the products the taxonomy featured image is not available. So for example, brand and product category featured images are showing has having missing images in the Algolia UI.

    Should the change we made be addressing this?

    wpsolr
    Keymaster
    8 months, 1 week ago #38487

    Should the change we made be addressing this?

    No, but it will be added to Release 23.7 (soon)

    wpsolr
    Keymaster
    8 months, 1 week ago #38489

    WPSOLR 23.6 is ready.

    wpsolr
    Keymaster
    8 months, 1 week ago #38497

    WPSOLR 23.7 is ready.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.