summaryrefslogtreecommitdiff
path: root/lib/chef_zero/solr/query
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-08-08 16:38:52 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-08-08 16:38:52 -0700
commit98c2f7148ccaad1af3f237094f9f664368c2a024 (patch)
tree223090f39d07ac9837ec3b97e5f9e63bd9ff981d /lib/chef_zero/solr/query
parent25ed925573c05f84c279decc8f8a039801ebccf1 (diff)
downloadchef-zero-98c2f7148ccaad1af3f237094f9f664368c2a024.tar.gz
Fix #31: Allow - in search terms rather then interpreting it as an operator
Diffstat (limited to 'lib/chef_zero/solr/query')
-rw-r--r--lib/chef_zero/solr/query/regexpable_query.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef_zero/solr/query/regexpable_query.rb b/lib/chef_zero/solr/query/regexpable_query.rb
index 7435fab..241e675 100644
--- a/lib/chef_zero/solr/query/regexpable_query.rb
+++ b/lib/chef_zero/solr/query/regexpable_query.rb
@@ -20,6 +20,7 @@ module ChefZero
values.any? { |value| !@regexp.match(value).nil? }
end
+ DEFAULT_FIELD = "text"
WORD_CHARACTER = "[A-Za-z0-9@._':]"
NON_WORD_CHARACTER = "[^A-Za-z0-9@._':]"
end