This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Request to Modify Search Result Structure and Improve Performance

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Request to Modify Search Result Structure and Improve Performance

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #55289
    dean_8iljdean_8ilj
    Participant

    Hello,

    Currently, the search result structure on my site looks like this: https://prnt.sc/Qc4ZxTAPiWEh
    However, I would like it to be updated to match the structure shown in this reference screenshot: https://prnt.sc/ajOOMqEeedMp

    As shown in the reference, I want the search results to be organized into the following sections:
    1. Categories
    2. Products
    3. Other Results

    Refrence site search bar: https://buydirectonline.com.au/

    In addition, I’ve noticed that the search function is a bit slow. After typing a query, it takes around 2 seconds for the results to appear. I’d appreciate it if you could also look into optimizing the search speed.

    Thank you!

    Page link: https://staging.auroraofficefurniture.com.au/new-menu/

    #55300
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details!

    To achieve the exact same grouping I have changed the configuration to a content type grouping, like so: https://i.imgur.com/OsUwarN.png

    To maximize the performance I have enabled the index table engine. After that I did some testing on the responsiveness, and the search process now finishes within ~0.06 seconds accoring to the measurments, which is exceptionally good (meaning the optimization works).

    I have also tested the server XHR response time, which is ~1.4 seconds for a completely empty request, meaning that is the minimum overhead added on top of Ajax Search Pro response times – so the total average response time is therefore 0.06 + 1.4 seconds. There is always some overhead, as this is the general time for WordPress to run initialize. This can be further improved by turning off unused plugins, removing unused code snippets etc..
    I usually aim to use as few plugins as possible (mostly less than 10), but of course plugin quality also matters. The 1.4s overhead seems about average to me. On very highly optimized servers it’s around 0.4 seconds or even less, but that requires a lot of code optimization.
    Chances are that on production it’s going to be lot less, as staging environments are usually shared on resources so they are not as quick as the production counterparts.

    #55304
    dean_8iljdean_8ilj
    Participant

    I’d like to request a customization for the search result dropdown. Specifically, I want the following functionality:

    1. Navigation Subtitle: Display a subtitle below each search item showing its source (e.g., category, product, blog, or other). Please see the attached reference screenshot for clarification.

    2. Categorization: Organize the search results into Categories, Products, and Others (where “Others” would include blogs and miscellaneous results).

    3. Remove Product Descriptions: For products, please remove the description text so only the product name (and the category subtitle) is shown.

    This way, the search results will be easier to navigate and visually clear.

    #55328
    Ernest MarcinkoErnest Marcinko
    Keymaster

    While we can’t offer customization services, I am more than happy to guide you to the closest possible features.

    1. & 3. I recommend checking the advanced title and content field features.

    2. The results grouping allows organization either by post type, content type or categories but no all at the same time. If you expect more than 1 post type, but only 1 taxonomy, then post type categorization is the best option here: https://i.imgur.com/kNsDwXw.png
    The “Other results” container is then basically the container for all the category results. I have set it up like that for you.

    #55334
    dean_8iljdean_8ilj
    Participant

    I have added multiple synonym groups in the Ajax Search Pro plugin (via Index Table Options → Synonyms), but the search is not working properly. When I search using the defined synonyms, the correct products appear, but the category name is not displayed in the search results.

    Could you please check this issue and help me fix it so that the category name is shown properly in the results when searching with synonyms?

    #55359
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #55508
    dean_8iljdean_8ilj
    Participant

    You cannot access this content.

    #55509
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #55567
    dean_8iljdean_8ilj
    Participant

    I added your plugin—maybe it’s the same version I already have, but I added it anyway. I noticed that when I generate the index, the value changes, but when I add a new item to the index, the value does not change. Can you check this and provide a solution?
    https://prnt.sc/k89uA1KY2-bR

    #55569
    Ernest MarcinkoErnest Marcinko
    Keymaster

    A new index has to be generated after synonyms are added, as it has to process all the data afterwards. It is best to add all the synonyms first, then generate the index afterwards.

    #55575
    dean_8iljdean_8ilj
    Participant

    I have installed all the synonyms, but it’s still not working. Could you please provide the correct procedure? I have already tried multiple times (10–12 times) by deleting the index, adding new items, and re-indexing, but it still isn’t working.

    #55576
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I quickly logged in to double check the configuration, and the index table was disabled. I turned it back on here, now the synonyms should be in effect. Everything else looks like it’s configured correctly.

    #55577
    dean_8iljdean_8ilj
    Participant

    However, I can’t see the category name on top while searching, and I don’t think the synonyms are working. If they were, the category name would display with the products listed under it. Could you please check everything and make it work?

    #55578
    dean_8iljdean_8ilj
    Participant

    I am unable to see the category name on top while performing a search, and it appears that the synonyms are not functioning correctly. If they were working, the category name would be displayed with the relevant products listed underneath. Could you please review all settings and ensure that this functionality works as expected?

    #55579
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sure!

    That is because of the grouping settings. If you want the results grouoped by categories, then make sure to change that configuration here: https://imgur.com/wZEOeJw

    That will group the products based on their product category. Just to be sure I have double checked the synonyms, and they seem to work, it is yielding results for the synonym keywords, that should be okay.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.