<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>public/opensearch.xml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,14 +6,14 @@ class SearchController &lt; ApplicationController
   }
 
   def index
-    @query   = params[:query].to_s
+    @query   = params[:q].to_s
     @facet   = 'default'
     @results = ThinkingSphinx::Search.search(@query + '*', :page =&gt; params[:page], :per_page =&gt; 10)
     @facets  = ThinkingSphinx::Search.facets(@query + '*')[:class]
   end
 
   def type
-    @query   = params[:query].to_s
+    @query   = params[:q].to_s
     @type    = params[:type].constantize
     @facet   = FACET_BY_TYPE[params[:type]]
     @results = @type.search(@query + '*', :page =&gt; params[:page], :per_page =&gt; 10)
@@ -22,7 +22,7 @@ class SearchController &lt; ApplicationController
   end
 
   def facet
-    @query   = params[:query].to_s
+    @query   = params[:q].to_s
     @type    = params[:type].constantize
     @facet   = FACET_BY_TYPE[params[:type]]
     by_facet = @type.facets(@query + '*', :page =&gt; params[:page], :per_page =&gt; 10)</diff>
      <filename>app/controllers/search_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,7 @@
     - else
       = stylesheet_link_tag 'style', 'markitup'
     &lt;link rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; href=&quot;/favicon.png&quot; /&gt;
+    &lt;link rel=&quot;search&quot; type=&quot;application/opensearchdescription+xml&quot; title=&quot;Recherche LinuxFr.org&quot; href=&quot;/opensearch.xml&quot; /&gt;
     - if @author
       %meta(name=&quot;author&quot; content=@author)
     %meta(name=&quot;description&quot; content=@description)
@@ -33,7 +34,7 @@
         %li= link_to &quot;Suivi&quot;, trackers_path
         %li= link_to &quot;Plan&quot;, static_path(:id =&gt; 'plan')
       - form_tag search_path, :method =&gt; :get do
-        &lt;input id=&quot;query&quot; name=&quot;query&quot; type=&quot;search&quot; placeholder=&quot;Entrer un mot-cl&#233;&quot; /&gt;
+        &lt;input id=&quot;query&quot; name=&quot;q&quot; type=&quot;search&quot; placeholder=&quot;Entrer un mot-cl&#233;&quot; /&gt;
         = submit_tag &quot;Rechercher&quot;, :name =&gt; nil
 
     %header#branding</diff>
      <filename>app/views/layouts/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   %ul
     - @facets.each do |facet,count|
       %li
-        = link_to &quot;#{facet} (#{count})&quot;, search_by_facet_path(:type =&gt; 'Tracker', :facet =&gt; facet, :query =&gt; @query)
+        = link_to &quot;#{facet} (#{count})&quot;, search_by_facet_path(:type =&gt; 'Tracker', :facet =&gt; facet, :q =&gt; @query)</diff>
      <filename>app/views/search/_category_facet.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   %ul
     - @facets.each do |type,count|
       %li
-        = link_to &quot;#{type} (#{count})&quot;, search_by_type_path(:type =&gt; type, :query =&gt; @query)
+        = link_to &quot;#{type} (#{count})&quot;, search_by_type_path(:type =&gt; type, :q =&gt; @query)</diff>
      <filename>app/views/search/_default_facet.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   %ul
     - @facets.each do |facet,count|
       %li
-        = link_to &quot;#{facet} (#{count})&quot;, search_by_facet_path(:type =&gt; 'Post', :facet =&gt; facet, :query =&gt; @query)
+        = link_to &quot;#{facet} (#{count})&quot;, search_by_facet_path(:type =&gt; 'Post', :facet =&gt; facet, :q =&gt; @query)</diff>
      <filename>app/views/search/_forum_facet.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   %ul
     - @facets.each do |facet,count|
       %li
-        = link_to &quot;#{facet} (#{count})&quot;, search_by_facet_path(:type =&gt; 'News', :facet =&gt; facet, :query =&gt; @query)
+        = link_to &quot;#{facet} (#{count})&quot;, search_by_facet_path(:type =&gt; 'News', :facet =&gt; facet, :q =&gt; @query)</diff>
      <filename>app/views/search/_section_facet.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -6,5 +6,5 @@
   %div
     %h2 R&#233;sultats
     - @results.each do |result|
-      = highlight render(result), @query, :highlighter =&gt; '&lt;mark&gt;\1&lt;/mark&gt;'
+      = highlight(render(result), @query, :highlighter =&gt; '&lt;mark&gt;\1&lt;/mark&gt;').html_safe!
     - will_paginate @results</diff>
      <filename>app/views/search/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 development: &amp;my_settings
   pid_file: tmp/pids/searchd.pid
+  mem_limit: 256M
   morphology: stem_en
   enable_star: 1
   min_infix_len: 3</diff>
      <filename>config/sphinx.yml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>749b480acb0021866407f62e29680bb70ad3183d</id>
    </parent>
  </parents>
  <author>
    <name>Bruno Michel</name>
    <email>bmichel@menfin.info</email>
  </author>
  <url>http://github.com/nono/linuxfr.org/commit/30f8362ae71e83c28d36f9dafef26fb215a6258c</url>
  <id>30f8362ae71e83c28d36f9dafef26fb215a6258c</id>
  <committed-date>2009-11-06T14:22:57-08:00</committed-date>
  <authored-date>2009-11-06T14:22:13-08:00</authored-date>
  <message>OpenSearch</message>
  <tree>89aae82b33388697f57282b0a8e0137b139eaf40</tree>
  <committer>
    <name>Bruno Michel</name>
    <email>bmichel@menfin.info</email>
  </committer>
</commit>
