summaryrefslogtreecommitdiff
path: root/lib/chef_zero/solr
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-06-26 18:02:23 -0600
committerJohn Keiser <jkeiser@opscode.com>2013-06-26 18:02:23 -0600
commit12c03cf782feecc9f1020cf3922b182403c2d4a0 (patch)
tree7bc51e10568777eaa67b4cfbf8fea958ce0b192e /lib/chef_zero/solr
parentb4494482f735c10bceab767718db2e8b224a4356 (diff)
downloadchef-zero-12c03cf782feecc9f1020cf3922b182403c2d4a0.tar.gz
Fix issue where subqueries (...) did not work
Diffstat (limited to 'lib/chef_zero/solr')
-rw-r--r--lib/chef_zero/solr/query/subquery.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef_zero/solr/query/subquery.rb b/lib/chef_zero/solr/query/subquery.rb
index 3727a20..da1b2f2 100644
--- a/lib/chef_zero/solr/query/subquery.rb
+++ b/lib/chef_zero/solr/query/subquery.rb
@@ -6,8 +6,10 @@ module ChefZero
@subquery = subquery
end
+ attr_reader :subquery
+
def to_s
- "(#{@subquery})"
+ "(#{subquery})"
end
def literal_string