Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOn the search results page it is actually possible without any additional code, as it will recognize the
$_GET['order']and$_GET['orderby']parameters.All you need to do is append that to the end of URL as query parameters, like:
...&order=ASC&orderby=idThe possible supported values by default are:
order parameter:ASC, DESC
orderby parameter:id, post_id, product_id, popularity, post_popularity, product_popularity, rating, post_rating, product_rating, date, post_date, product_date, name, post_name, alphabetical, price, relevanceI suggest using these if you can. If you want you can custom code additional accepted values as you like, let me know and I will let you know a custom code snippet.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Yes, it is possible to do it indirectly via term metadata, then enabling search in the metadata fields.
The easiest way to add a term metadata field non-programmatically is by using ACF plugin. If you are already using it, it has a feature to add term meta fields via their UI. It is also possible to do it programmatically, for that please check this tutorial.As for the second questions, the reason is that the phrase does not match the product category title nor the description only the product fields.
However if you want to, you can display the product categories (and many other things) within each results via the advanced content field.
-
This reply was modified 8 months, 2 weeks ago by
Ernest Marcinko.
Ernest Marcinko
KeymasterHi,
I’m afraid this is not possible, there is no sorting filter available as of now for the live results.
I usually recommend a customization or a custom code where possible, but this is a lot more complicated than that. The only way to achieve this is to fully implement it from top to bottom, which unfortunately takes more than a few lines of code.
It will be available though in a later release, as it is a planned feature within the filters section rework.
September 25, 2025 at 7:36 am in reply to: Request to Modify Search Result Structure and Improve Performance #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.
September 24, 2025 at 10:54 am in reply to: Request to Modify Search Result Structure and Improve Performance #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.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Thank you for the details, it helped a lot.
There were a couple of minor issues with the configuration. First, I have disabled the exact matching, as it will override the keyword logic. Next, I have changed the search to the index table engine. The reason is, that the index table is far superior for exact word matching. With the regular engine there are limitations especially when words are surrounded dots, commas, parentheses etc..
This configuration should give you more consistent exact keyword matches. Please note that the description context may not be 100% accurate where the potential match was, but still the exact matches with this configuration are going to be on the top.
Now, in case of the keyword “search”, the only exact match is the first one, this one. Coming from this section
..trying to track down his father’s killer and thus returns anything that’s irrelevant to his search), the question of whether Kaito’s... Previously this wasn’t matched as the word in the sentence is “search)” ending in a parenthesis, which the index table trims and matches correctly.September 23, 2025 at 2:42 pm in reply to: Request to Modify Search Result Structure and Improve Performance #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.
Ernest Marcinko
KeymasterMake sure the second search box compact layout is enabled for all devices: https://imgur.com/3gHW4YE
It renders the second box, but it’s non-compact as it’s disabled for non mobile user agents. Changing that option will render it always compact, and the CSS will show/hide it based on the width.
Ernest Marcinko
KeymasterYou cannot access this content.
-
This reply was modified 8 months, 2 weeks ago by
-
AuthorPosts