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

david lesieur’s picture

Category: support » feature

Hehe, 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.

david lesieur’s picture

Title: Guided Search results in alphabetical list » Show categories with the highest number of associated nodes in Guided search
arava_phani’s picture

Is 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

david lesieur’s picture

I think this would mostly involve changing the SQL query in the load_categories() method of the faceted_search class.

arava_phani’s picture

This 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 ?

arava_phani’s picture

Got a better way to do this

array_unshift($query->orderby,"count DESC");

Thanks David.BTW a great module

Problem Solved

Regards
Phani

david lesieur’s picture

Status: Active » Fixed

I'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. ;-)

Anonymous’s picture

Status: Fixed » Closed (fixed)