[Rearchitecture] Search on several pages behave oddly?
Amrayu78
We have several pages that have built-in search on the page itself:
When I search for a title and select the result, it brings me to the drama page.
Shouldn't the behavior be like this (like the old site):
- user searches the page
- Results show up underneath on the same page
- It shouldn't bring the user to the drama page directly
The goal is to find a title that matches what's on the following pages:
- forever lonely - titles without any subtitles
- treasure island - titles with subtitles
- pirates booty - titles with pb link either linked on main tab or episodes tab
Amrayu78
open
Amrayu78
closed
Amrayu78
Max Romanchenko: Another bug?
Max Romanchenko
I understand your request, but this isn’t a bug - it’s a feature! 😊 The standard search has been replaced with an AJAX-based search. I actually emailed you about this on March 9th, so please double-check your inbox ;).
Search is always a delicate matter.
Here’s why the change was made:
- The goal was to completely remove the standard search page, as it’s slow and frequently targeted by bots.
- Additionally, standard search doesn’t support searching by fields, which is a significant limitation. Search functionality in WordPress isn’t exactly its strongest feature.
- On the previous site, the search results page was controlled by the Relevanssi plugin, which created a lot of challenges when working on these pages together with Views.
My aim was to break free from these dependencies.
For now, I’d like to kindly ask you to test the current solution. If no one finds it satisfactory, I will consider reverting back to the standard search.
The current setup has been optimized to address the following use cases:
- Forever lonely: Titles without any subtitles.
- Treasure island: Titles with subtitles.
- Pirates booty: Titles with a pb link.
Please check if this is working as expected -the search should limit results based on the page context.
Amrayu78
Max Romanchenko: Can you decouple the results so it shows on the page itself? Or is that a limitation that you mentioned above?
The current search is fine for sitewide search when users know exactly what they want to find and want to go directly to the page.
Bots do not have access to these pages (these pages are members-only) so they can't attack the search of these pages.
The users lose context by relying on the dropdown search results since it only has the title and promo image. Having the results show on the page itself gives users more context on what they are looking for (total episodes, how many episodes available on PB, Air Dates, Season Year, etc.
Max Romanchenko
Amrayu78 Amrayu78 I agree with you, your arguments are convincing.
I need some time to adapt these pages to classic search.
Can we close this thread and continue here? These topics are similar, I think.
Thank you.
Amrayu78
Max Romanchenko: Thanks, closing this one.
Max Romanchenko
Amrayu78 Hi Duong, could you please reopen this, I think this ticket contains important information.
I decided to start with this Pirate’s Booty page and brought back "classic search".
it's a real challenge to fight WP search...
I think I managed to make a search by native and english titles. Please check if I'm moving in the right direction.
Amrayu78
Max Romanchenko: Reopened. Did you mean for me to close this one instead? https://drama-otaku.canny.io/feature-requests/p/rearchitecture-conflicting-results-behavior-for-advanced-search
Max Romanchenko
Amrayu78 Yes please :)
Amrayu78
Max Romanchenko: I just tested Pirate's Booty page and it's working great! Super fast too.
Max Romanchenko
Amrayu78 Hi Duong,
I have brought back classic search on these pages and improved the search breadcrumbs display (selected filters).
Check, please.
Amrayu78
Max Romanchenko: Thanks Max, I will test today.
Amrayu78
Max Romanchenko Cat Mare G: Can you help test this? I'm super busy packing this week. T_T
C
Cat
Amrayu78 Will do! I did a quick test yesterday and it seemed fine to me but will do a thorough one to make sure! :)
C
Cat
Max Romanchenko Amrayu78 From the testing I did it seems like everything is working fine and as expected! Looks great too!