Quicksearch results by Taxonomies as well as Products

  • wpsolr
    Keymaster
    5 years, 1 month ago #10719

    I’ve completed the first step: indexing and retrieving taxonomies.

    I am working on suggestions layouts.

    leomoon
    Participant
    5 years, 1 month ago #10754

    Your solution would definitely work, and you are making it an all-encompassing, which is great. I am at your disposal for any beta testing.

    wpsolr
    Keymaster
    5 years, 1 month ago #10755

    I am rewriting all UI elements with Twig templates.

    It will allow more flexibility:
    – Multiple templates for the same UI (admin can choose among several suggestion layouts for instance)
    – Ability to customize UIs (by copying and editing the twig templates in the child theme folder)

    wpsolr
    Keymaster
    5 years, 1 month ago #10771

    – I’ve rebuilt UI elements, including suggestions, with Twig templates.

    – The suggestions can now also show taxonomies, with a redirection to their taxonomy page.

    – I’m now building a new suggestion template that can group suggestions, not by relevancy, but by “type” or “meta type”.

    The “type” is the post type (post, page, product …), or the taxonomy name (tag, category, “title” in your case, …).

    The “meta type”, on the other hand, is grouping results in only 3 groups: “Post type”, “Taxonomy”, “Term”.

    The groups are not sorted with a predefined order. Instead, they are sorted based on their most relevant content. So, if for a keyword, suggestions returns terms and products, and terms contain the most relevant content, then terms group will be displayed in first position. Another keyword can therefore display products group first.

    Let me know if this fits in your requirements.

    leomoon
    Participant
    5 years, 1 month ago #10831

    That all sounds great. I assume of course that on the admin side we well be able to select which taxonomies and types are included in the suggestions.

    I wanted to mention one scenario which, I assume would also fit in your current “trigger” approach: if I type in for example 1929-1939, the search should be able to parse this as a range, and, in my case this range would be the years that books have been published. This is not a priority right now, but just something to have in mind.

    If you have the existing work in progress somewhere on-line, please send us the link so we can see how it would look like.

    And BTW, for whatever reason, I don’t get any emails when this thread is replied to. It could be on my side, but I am merely using a regular gmail address and the “notify me of follow-ups” is checked every time.

    wpsolr
    Keymaster
    5 years, 1 month ago #10845

    I assume of course that on the admin side we well be able to select which taxonomies and types are included in the suggestions.

    Exact.

    If you have the existing work in progress somewhere on-line, please send us the link so we can see how it would look like.

    As soon as it is stable, I’ll share a beta with you.

    I don’t get any emails when this thread is replied to

    Thanks for the feedback. It should be solved by now.

    if I type in for example 1929-1939, the search should be able to parse this as a range,

    Please create a new feature request.

    wpsolr
    Keymaster
    5 years ago #11037

    I have a beta for you to test. Still interested?

    WPSOLR admin:select taxonomies to index:
    Image wpsolr-admin-select-index-taxonomies.png of

     

    WPSOLR admin: index taxonomies:
    Image wpsolr-admin-indexing-taxonomies.png of

     

    WPSOLR admin: suggestions showing taxonomies, grouped by content type:
    Image wpsolr-admin-suggestions-taxonomies.png of

     

    WPSOLR front-end: suggestions showing taxonomies, grouped by content type:
    WPSOLR front-end: suggestions showing taxonomies, grouped by content type

    leomoon
    Participant
    5 years ago #11048

    I am very excited about this and would love to test the beta, please!

    wpsolr
    Keymaster
    leomoon
    Participant
    5 years ago #11079

    For some reason, I am unable to save data types to be indexed on 2.2. Whatever I select, after hitting save gets lost, including Products, which were originally selected before the beta. Look:

    https://1drv.ms/v/s!Ah6mDhPS2VbWhu5_z9wNXb3MWMBVyg

    wpsolr
    Keymaster
    5 years ago #11082

    Do you have errors in debug.log?

    wpsolr
    Keymaster
    5 years ago #11132

    I installed the beta on wpsolr.com. Suggestions are now grouped by content type.

    Image wpsolr-front-suggestions-grouped-by-content-type.png of

    leomoon
    Participant
    5 years ago #11159

    Apologies for such a show response.

    No errors in the log whatsoever. I tried removing wpsolr-pro dir completely. Maybe I need to clear out all the wpsolar data from wp-options?

    wpsolr
    Keymaster
    5 years ago #11166

    The video shows a very slow page on save. Can you check that with Query monitor?

    leomoon
    Participant
    5 years ago #11172

    The very load of 2.2 page is super slow. Some SELECTs are over 12 seconds.

    I don’t get query monitor info on save as the page gets reloaded and it gives me only SELECTs again.

    I can create a debug environment for you and give you full access to the website if you think this would help. XDebug is there. I just need a secure way to send you credentials.

    FROM wp_posts as POSTS
    INNER JOIN wp_postmeta AS POSTMETAS
    ON POSTS.ID = POSTMETAS.post_id
    WHERE POSTS.post_type = ‘product’
    +
    wpsolr\c\c\m\p\WPSOLR_Model_Meta_Type_Post->get_fields()
    Plugin: wpsolr-pro
    48
    12.2599
    SELECT distinct meta_key
    FROM wp_posts as POSTS
    INNER JOIN wp_postmeta AS POSTMETAS
    ON POSTS.ID = POSTMETAS.post_id
    WHERE POSTS.post_type = ‘attachment’
    +
    wpsolr\c\c\m\p\WPSOLR_Model_Meta_Type_Post->get_fields()
    Plugin: wpsolr-pro
    7
    3.5855
    SELECT distinct meta_key
    FROM wp_posts as POSTS
    INNER JOIN wp_postmeta AS POSTMETAS
    ON POSTS.ID = POSTMETAS.post_id
    WHERE POSTS.post_type = ‘product’
    +
    wpsolr\c\c\m\p\WPSOLR_Model_Meta_Type_Post->get_fields()
    Plugin: wpsolr-pro
    48
    13.0330

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

You must be logged in to reply to this topic.