Order products by category priority

  • mneimne
    Participant
    1 year, 11 months ago #29604

    another finding in version 22.2 (no fix):
    If product_cat is enabled in Filters, it is shown correctly in the search page, and it doesn’t show in the product archive. To make the product category filter visible, I had to click on “Show categories as tree” which will make it visible in the product archive but it doesn’t work as expected

    is there a support portal that I can send my staging URLs to show you the issue.
    Thanks,

    wpsolr
    Keymaster
    1 year, 11 months ago #29605

    Let’s have the same simple test use case, with 2 products and 3 products categories:
    – Delete your index content, and verify your search is empty
    – Create “product 1” with “cat 1 -> cat 2 -> cat 3′
    – Create “product 2” with “cat 1 -> cat 2 -> cat 4′

    You should now see the 2 products in your search.

    Navigate to /product_category/cat-1/cat-2, and check that filtering on “cat 3” or “cat 4” works as expected.

    mneimne
    Participant
    1 year, 11 months ago #29606

    The facets didn’t show up in the product category archive (https://pasteboard.co/hEH64x2OfutF.png)
    Although in the search they did (https://pasteboard.co/kc4LqR4wm7PM.png)

    mneimne
    Participant
    1 year, 11 months ago #29607

    Category facets will only be displayed in the category page if I selected “select to display the facet as tree”, but then the filtering won’t work all results will be fetched.
    https://pasteboard.co/szKvkQsYFA8e.png

    mneimne
    Participant
    1 year, 11 months ago #29608

    I checked the demos found on the website, and it seems they all have this issue
    check out this link for a category archive : https://demo-woocommerce-flatsome-cloudways-million-products.wpsolr.com/product-category/slumber-bags/

    it doesn’t show the categories in the facets, only in the search page. Thought this might help.

    wpsolr
    Keymaster
    1 year, 11 months ago #29609

    WPSOLR only shows facet children from the current archive term. On demos, all categories are flat (no children).
    I’ve tested with 2 products and 3 products categories as mentioned, with success. Still investigating.

    wpsolr
    Keymaster
    1 year, 11 months ago #29610

    I invited your email to a private Trello board to solve this topic. See you there…

    wpsolr
    Keymaster
    1 year, 11 months ago #29611

    Here is a fix to this issue (on a category archive, the children category facets do not work):
    https://trello.com/c/q3k8dbqX/188-fix-children-term-filter-of-current-category-archive

    mneimne
    Participant
    1 year, 11 months ago #29614

    Thanks, the fix seems to be working.
    Another question, I followed your guide on how to make Elasticsearch return more than 10,000 results, however it doesn’t seem to be working, always 10K results are returned.
    Knowing that the settings API call on that index indicates that this value was set to more than 10K.
    Elasticsearch version 7.6.2

    wpsolr
    Keymaster
    1 year, 11 months ago #29615

    Please continue this new subject on how to make Elasticsearch return more than 10,000 results

    • This reply was modified 1 year, 11 months ago by wpsolr.
Viewing 10 posts - 31 through 40 (of 40 total)

You must be logged in to reply to this topic.