Sorting Search Results
This topic contains 7 replies, has 3 voices, and was last updated by Stiofan O’Connor 7 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 7, 2017 at 8:47 pm #390177
I am posting a new topic after reading a previous discussion from earlier in the year.
https://wpgeodirectory.com/support/topic/no-sorting-for-search-results
I wonder if a simple but elegant solution is to add another sorting option similar to “Random” but called “Relevance” or “Best Match”. This is similar to what Amazon does. The idea here is that the site owner can set the default sorting on search results to be whatever they want. Out of the box, the “Relevance” option is the default and is the current, standard GeoDirectory search result exact/unexact sorting. This works for most directories.
In the case where a specific directory needs the ability to sort the actual search results differently, the site owner can still customize this in the GeoDirection Admin UI. In my case, my members want to see search results with highest rated first, review counts second and such.
Just a suggestion that might allow GeoDirectory to honor the customer feedback that led to the “unexact” search results while also honoring those customers who need something different. Configurability is one of the strengths of GeoDirectory and I see this being in alignment.
Thanks
Tom
August 8, 2017 at 6:30 pm #390318Hi Tom,
Search is a complicated matter 🙂
The way we do searches is that we search a wide majority of things and then order them by weight of results, like if you search for “food” it will order things with food in the title over things with only food in the content, if you then order that by reviews it might list something with 5* but says in the content “we don;t serve food” the number of comments/revies a listing has is counted in the weight of the ordering but to specifically order by something would bring unrelivant results.
i am happy to discuss this further.
Thanks,
Stiofan
August 9, 2017 at 12:47 pm #390382Stiofan.
I completely understand. 🙂 Having written something similar for another platform, I recognize that it is difficult to appease 100% of your customer base, 100% of the time. The business proposition is one that must be carefully weighed.
Having reviewed the geodir_posts_orderby() code in the listing_filters.php, Well done! The combination of order by cases along with the weighting mechanism is good stuff. If there is business concern about adding customization of the search weighting and ordering of results in the admin UI, perhaps there is a middle ground that would assist custom development.
I see the filter available towards the end of the function. That helps! I still like the idea of adding an order by option in the admin ui for “Relevance” as this facilitates ordering of results in the end user UI to get back to relevance as needed, passing the sort_by=az.
i.e. for one of my directories, the following search URL params yield pretty good results and moves the higher rated listings to the front which is what our users actually expect….to a point
?geodir_search=1&stype=gd_place&s=cisco&sort_by=high_rating
Another developer friendly step or possible feature in the admin UI is to allow the override or setting of the individual weights used as part of the count($keywords) orderby completion. While those weights are hard coded based on the best feedback your team has received from customers, the additional option to deviate from those “Geodirectory best practices” allows those who are adventurous to tweak to the best fit for their customers who are ultimately the users of our directories built on GeoDirectory.
Just some thoughts and I REALLY appreciate your willingness to continue to dialogue on this topic. I can easily see how the various threads in the past where folks simply complain about search can get tiring to answer. My hope is that this thread might provide a good business proposition from the viewpoint of both a business owner, developer and a position of search algorithm layman understanding.
Cheers.
August 9, 2017 at 4:48 pm #390424Thanks for the feedback, its appreciated 🙂
I think a first step would be to filter the weights, a second step as you say would be to provide a UI for it, if we can think of a easy UI that won’t confuse users or let them break it then i would be happy to implement it.
Thanks,
Stiofan
August 9, 2017 at 5:44 pm #390431Thanks Stiofan.
LOL! I can understand not wanting a customer to “break” search. 🙂 Perhaps having any option to RESET weights to the default gives some assurance of getting a customer back to “working”.
Here’s another business opportunity perhaps. Maybe the search weighting UI is only available as part of the Advanced Search Plugin. Another reason for folks to buy it. Leave weighting and orderby hooks for those of us doing custom dev.
Perhaps a UI item that can easily be unchecked to get a customer back to ground zero: Add a checkbox that enables the sorting options to override the relevance default. If the box is checked, the forced relevance is not enabled in the order by, leaving the sorting options in search admin UI as they are. If unchecked, the standard GeoDirectory relevance override for search results remains and the weights are tweaked as needed. Or the other way around on the checkbox if better UX.
Thanks for listening Stiofan. Appreciative of the dialogue.
Cheers!
August 10, 2017 at 12:39 pm #390516I believe the hooks are already in place to do it (not tested) and if not then we would happily add them. A UI for it might be done in future but i would be happy to implement a dev hooks solution now. If you need pointers let me know what one item you want to weight and i will make an example.
Thanks,
Stiofan
August 26, 2017 at 6:00 am #392975Hey guys, just wanted to say as a compromise or as well as being able to adjust the before mentioned search weighting I really like the idea of having category pages appear pinned to the top and maybe highlighted as an autocomplete option in keyword section of search bar.
As explained here https://wpgeodirectory.com/support/topic/no-sorting-for-search-results/#post-354746
Thanks
August 26, 2017 at 11:46 am #392997Yeah i like that idea too, i’ll take a look at how to implement this and keep you updated.
Thanks,
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket