diff options
-rw-r--r-- | app/models/info_request.rb | 4 | ||||
-rw-r--r-- | todo.txt | 17 | ||||
-rw-r--r-- | vendor/plugins/acts_as_solr/lib/instance_methods.rb | 2 |
3 files changed, 7 insertions, 16 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 3e469fbaa..d6c2e7bd3 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -22,7 +22,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.63 2008-03-13 12:15:21 francis Exp $ +# $Id: info_request.rb,v 1.64 2008-03-14 09:47:31 francis Exp $ require 'digest/sha1' @@ -112,8 +112,8 @@ class InfoRequest < ActiveRecord::Base incoming_message.solr_destroy end end - info_request.solr_up_to_date = true $do_solr_index = false # disable indexing again while we save it, or else destroyed things get put back + info_request.solr_up_to_date = true info_request.save! $do_solr_index = true end @@ -6,22 +6,13 @@ Search: Gah - test to see if it queries solr when new message arrives -Date sorting - - add public bodies and users - - make updated at use last event date +Search for successful requests now has bogus date order :( Doesn't fit in +with paradigm of request / incoming message being separate objects. +Perhaps we should be indexing events Search by tags on public bodies -cron jobs aren't running, some weirdness with run-with-lockfile - -Should we index by individual piece of correspondence, or by whole info requests? - Advantages of individual: - Ordinary search results link more directly to object - Easy to alert when a new piece of correspondence occurs - Advantages of whole info requests: - Easier to alert to new correspondence on request containing keyword - Shorter search results - Syntax of filtering requests by type is clearer +Check cron jobs are running Send mail re university requests http://www.whatdotheyknow.com/user/jennifer_jones#user-55 diff --git a/vendor/plugins/acts_as_solr/lib/instance_methods.rb b/vendor/plugins/acts_as_solr/lib/instance_methods.rb index 0941d209d..c53df94f3 100644 --- a/vendor/plugins/acts_as_solr/lib/instance_methods.rb +++ b/vendor/plugins/acts_as_solr/lib/instance_methods.rb @@ -136,4 +136,4 @@ module ActsAsSolr #:nodoc: end end -end
\ No newline at end of file +end |