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

  • moisb
    Participant
    # 1 month, 2 weeks ago

    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
    # 1 month, 2 weeks ago

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

    moisb
    Participant
    # 1 month, 2 weeks ago

    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
    # 1 month, 2 weeks ago

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

    moisb
    Participant
    # 1 month, 2 weeks ago

    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
    # 1 month, 2 weeks ago

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

    moisb
    Participant
    # 1 month, 2 weeks ago

    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
    # 1 month, 2 weeks ago

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

    moisb
    Participant
    # 1 month, 2 weeks ago

    Yes!

    wpsolr
    Keymaster
    # 1 month, 2 weeks ago

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

    moisb
    Participant
    # 1 month, 2 weeks ago

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

    moisb
    Participant
    # 1 month, 2 weeks ago

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

    wpsolr
    Keymaster
    # 1 month, 2 weeks ago

    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
    # 1 month, 2 weeks ago

    A fix will be built asap.

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

    moisb
    Participant
    # 1 month, 2 weeks ago

    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.