diff options
-rw-r--r-- | app/models/info_request_event.rb | 6 | ||||
-rw-r--r-- | app/views/general/search.rhtml | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index 40f880b72..ef3d729f6 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -17,7 +17,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request_event.rb,v 1.31 2008-03-31 23:58:54 francis Exp $ +# $Id: info_request_event.rb,v 1.32 2008-04-01 06:13:02 francis Exp $ class InfoRequestEvent < ActiveRecord::Base belongs_to :info_request @@ -55,6 +55,7 @@ class InfoRequestEvent < ActiveRecord::Base { :status => :string }, { :requested_by => :string }, { :requested_from => :string }, + { :request => :string }, { :created_at => :date }, { :last_described_at => :date }, { :variety => :string } @@ -68,6 +69,9 @@ class InfoRequestEvent < ActiveRecord::Base def requested_from self.info_request.public_body.url_name end + def request + self.info_request.url_title + end def solr_text_main text = '' if self.event_type == 'sent' diff --git a/app/views/general/search.rhtml b/app/views/general/search.rhtml index 84270c889..078fbf3cf 100644 --- a/app/views/general/search.rhtml +++ b/app/views/general/search.rhtml @@ -54,6 +54,7 @@ <li>Type <strong>status:</strong> to select based on the status of the request or the status that the response caused, see table below. <li><strong>requested_from:home_office</strong> to restrict to requests from the <%= link_to "Home Office", show_public_body_url(:url_name => 'home_office') %>, typing the name as in the URL. <li><strong>requested_by:julian_todd</strong> to restrict to requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, typing the name as in the URL. + <li><strong>request:</strong> to restrict to a specific request, typing the title as in the URL. <li>Read about <a href="http://lucene.apache.org/java/docs/queryparsersyntax.html">advanced search operators</a>, such as fuzziness and proximity. </ul> |