Closed (fixed)
Project:
Faceted Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2007 at 17:04 UTC
Updated:
19 Oct 2007 at 07:31 UTC
Iam trying to solve this issue of the display of guided search results, The results display seems to be alphabetical in the latest release,
Previously the display was set to the highest number of nodes in with the term.
Is it something you guys wantedly did it. How do i go back to the oirignal settings of the order being the more number of products.
Regards
Phani
Comments
Comment #1
david lesieur commentedHehe, you are sharp-eyed! :-) Yes, I agree that showing the most used categories was more interesting than the current alphabetical order. I have changed it for performance reasons, but [thanks to some other changes] I might be able to bring this feature back without much penalty, or perhaps as an option.
Comment #2
david lesieur commentedComment #3
arava_phani commentedIs this a very big patch, Can I have a temp solution. Our site is going live and we would like to have this feature.
Can you point where should i be changing.
I know a bit of PHP,but there are lot of changes in the versions and iam stuck where to change the results order.
Iam prety sure it has todo something with taxonomy_facets.module
Regards
Phani
Comment #4
david lesieur commentedI think this would mostly involve changing the SQL query in the load_categories() method of the faceted_search class.
Comment #5
arava_phani commentedThis is what i did . I dont know if iam right.
Added these lines in load_categories, just before the build query. I just need the ordering in number. So i dont care about others.
$query->orderby=array();
$query->orderby[]= 'count DESC';
Do you think it will effect anything else ?
Comment #6
arava_phani commentedGot a better way to do this
array_unshift($query->orderby,"count DESC");
Thanks David.BTW a great module
Problem Solved
Regards
Phani
Comment #7
david lesieur commentedI've just committed changes to solve this.
Site admins may now select a default sort criteria for each facet. Users can also select a sort criteria when they view the full list of a facet's categories (after clicking a facet's "more" link).
Feedback is welcome. ;-)
Comment #8
(not verified) commented