Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Search Results - Alphabetical order View modes: 
User avatar
Certified Developer 10
Certified Developer 10
jharrison@visualantidote.com - 10/5/2013 10:03:33 PM
   
Search Results - Alphabetical order
Our client would like the search results on their search page to show in alphabetical order. How do we do this?

We have tried "title asc" in Search Results order (of the Search Results WebPart) , but it has no effect. We have also tried just "title" in the Search Results Order with no effect.

The one thing that we have been able to get to work partially is adding:
        results.Tables[0].DefaultView.Sort = "title asc";

directly to the file "CMSModules/SmartSearch?Controls/SearchResults.ascx.cs" .

Unfortunately this results in only each page (of the results) being alphabetical and not the whole result set.

Any help is appreciated

Thanks
James

User avatar
Kentico Support
Kentico Support
kentico_romank - 10/6/2013 5:06:40 AM
   
RE:Search Results - Alphabetical order
Hi,

You could try the following approach, go to Site Manager -> Development -> System tables -> E-Commerce SKU -> Search fields. There find field called DocumentName, check Searchable and uncheck Tokenized for that field, save changes and rebuild the index. Then just put to Search result order property DocumentName ASC. After you do this it should work as you described.

Best Regards,
Roman Konicek

User avatar
Certified Developer 10
Certified Developer 10
jharrison@visualantidote.com - 10/6/2013 11:02:11 AM
   
RE:Search Results - Alphabetical order
Hello,

That fixed the issue. Thank you for your help and your quick reply!

James