Only the “products” type post are indexed after update to 22.1

Tagged:
  • moisb
    Participant
    2 years, 7 months ago #27636

    Hi, I have 3 types of posts for indexing, and I use Elastic.io with WPSorl on 2 websites (cross-domain). Until version 22.0 I can index all 3 types of posts if I have on 2 websites, complementing the results. However, today after upgrading to 22.1 I cleared the index and re-index all the data, but only the type “product” appears in the search results.
    There is no error message when indexing any of the 3 types of posts.

    wpsolr
    Keymaster
    2 years, 7 months ago #27637

    Are the 2 other post types public and searchable?
    Can you see them inside your index?

    moisb
    Participant
    2 years, 7 months ago #27638

    yes, all posts are public and are in the index. The Elastic.io docs count stats shows 11,745 objects in the index, but an empty search (/?s=) on the site only returns 827 results (the 827 products I have on both sites) without showing the other types of posts

    wpsolr
    Keymaster
    2 years, 7 months ago #27639

    With [‘exclude_from_search’ => ‘true’] ?

    moisb
    Participant
    2 years, 7 months ago #27640

    I haven’t changed any settings in WPSolr. I just updated the plugin from 22.0 to 22.1 and created a new index in Elastic.io. In version 22.0 all posts types were displayed in search results normally.

    wpsolr
    Keymaster
    2 years, 7 months ago #27641

    Can you check if your post types are excluded from search?
    WPSOLR now excludes those post types from search too.

    moisb
    Participant
    2 years, 7 months ago #27642

    I don’t know exactly what you’re talking about. Can you explain?
    on screen 2.2 Data, the 3 types of posts I want are selected.

    wpsolr
    Keymaster
    2 years, 7 months ago #27643

    Your 3 post types appear in your search when WPSOLR is not active?

    moisb
    Participant
    2 years, 7 months ago #27644

    Yes!

    wpsolr
    Keymaster
    2 years, 7 months ago #27645

    Can you activate the query logs in screen 2.1 to check the Elasticsearch query?

    moisb
    Participant
    2 years, 7 months ago #27646

    The logs:
    Search all: https://pastebin.com/EGxdYixJ
    Product search: https://pastebin.com/PG09RSCN
    Post type (coupon) search: https://pastebin.com/jtzr0NWq

    moisb
    Participant
    2 years, 7 months ago #27647

    The same search result in Elastic.io dev tools console for post type coupon query: https://pastebin.com/dAGXJetP

    wpsolr
    Keymaster
    2 years, 7 months ago #27648

    Your product stock visibility WooCommerce option is active, and applied by WPSOLR to all queries. This is why only products are shown in results.

    wpsolr
    Keymaster
    2 years, 7 months ago #27649

    A fix will be built asap.

    In the meantime, you can deactivate WooCommerce product visibility option.

    moisb
    Participant
    2 years, 7 months ago #27650

    strange! I haven’t changed this option recently. But problem solved! Thanks

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.