Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Request to Modify Search Result Structure and Improve Performance
- This topic has 14 replies, 2 voices, and was last updated 8 months, 1 week ago by
Ernest Marcinko.
-
AuthorPosts
-
August 22, 2025 at 10:06 am #55289
dean_8ilj
ParticipantHello,
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/ajOOMqEeedMpAs shown in the reference, I want the search results to be organized into the following sections:
1. Categories
2. Products
3. Other ResultsRefrence 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/
August 22, 2025 at 2:47 pm #55300Ernest Marcinko
KeymasterHi,
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.August 25, 2025 at 10:45 am #55304dean_8ilj
ParticipantI’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.
August 26, 2025 at 2:14 pm #55328Ernest Marcinko
KeymasterWhile 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.-
This reply was modified 9 months, 1 week ago by
Ernest Marcinko.
August 27, 2025 at 7:46 am #55334dean_8ilj
ParticipantI 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?
August 28, 2025 at 8:58 am #55359Ernest Marcinko
KeymasterYou cannot access this content.
September 19, 2025 at 11:19 am #55508dean_8ilj
ParticipantYou cannot access this content.
September 19, 2025 at 12:05 pm #55509Ernest Marcinko
KeymasterYou cannot access this content.
September 23, 2025 at 2:26 pm #55567dean_8ilj
ParticipantI 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-bRSeptember 23, 2025 at 2:42 pm #55569Ernest Marcinko
KeymasterA 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.
September 24, 2025 at 10:47 am #55575dean_8ilj
ParticipantI 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.
September 24, 2025 at 10:54 am #55576Ernest Marcinko
KeymasterI 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.
September 24, 2025 at 12:35 pm #55577dean_8ilj
ParticipantHowever, 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?
September 24, 2025 at 12:36 pm #55578dean_8ilj
ParticipantI 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?
September 25, 2025 at 7:36 am #55579Ernest Marcinko
KeymasterSure!
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.
-
This reply was modified 9 months, 1 week ago by
-
AuthorPosts
- You must be logged in to reply to this topic.