<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1250: Search results should be sorted by score rather than alphabetical</title>
    <link>http://localhost/ticket/1250</link>
    <description>&lt;p&gt;
At the moment we sort search results alphabetically. While this is useful for doing 'browse' case where no search bad for all other cases.
&lt;/p&gt;
&lt;p&gt;
Adopt default sort order of 'score' though may wish to keep alphabetical for no search term (i.e. wildcard).
&lt;/p&gt;
&lt;p&gt;
Options:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Default this in solr (no need to touch code) but fragile and affects everything ...
&lt;/li&gt;&lt;li&gt;Do it in code and default to score
&lt;/li&gt;&lt;li&gt;Do it in code and have alphabetical (on name or title?) when no criteria otherwise score
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Aside: may also wish to support search in query api but that is for later!
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1250</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>pudo</dc:creator>

      <pubDate>Wed, 03 Aug 2011 11:16:41 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1250#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1250#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The issue is caused after search returns from solr and tries to get objects from the database. These are by default ordered by name and we need to restore the original order after fetching them from the database.
&lt;/p&gt;
&lt;p&gt;
Fixed in module.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>