diff options
author | francis <francis> | 2009-06-19 09:41:55 +0000 |
---|---|---|
committer | francis <francis> | 2009-06-19 09:41:55 +0000 |
commit | dd1ae63407db5d7f372eb9997774f44d51c3053c (patch) | |
tree | fce4e4d3e9fca07512833498d294dfa6cf9dd033 | |
parent | 8b099f5c356471e37625ee5d04d8a23acda9d617 (diff) |
Stop &/and as people may type either.
-rw-r--r-- | todo.txt | 2 | ||||
-rw-r--r-- | vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -5,6 +5,8 @@ Private policy wiki to put administrative documentation e.g. what to do with a notification of possibly libelous material, how to handle common support email types etc. +Factor out "defunct/not_apply" from request_email into own field. + Check up on how the public old request status editing is being used in practice. Think about UI a bit more to try and up rate, and UI of diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb index 3f71d8e3c..941a59735 100644 --- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb +++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb @@ -140,6 +140,11 @@ module ActsAsXapian @@query_parser.database = @@db @@query_parser.default_op = Xapian::Query::OP_AND + @@stopper = Xapian::SimpleStopper.new + @@stopper.add("and") + @@stopper.add("&") + @@query_parser.stopper = @@stopper + @@terms_by_capital = {} @@values_by_number = {} @@values_by_prefix = {} |