lib/rsolr-ext/response.rb in mwmitchell-rsolr-ext-0.6.1 vs lib/rsolr-ext/response.rb in mwmitchell-rsolr-ext-0.7.0
- old
+ new
@@ -22,11 +22,11 @@
#
class Standard < Base
def initialize(*args)
super(*args)
- extend Docs
- extend Facets
+ extend Docs if self['response']['docs']
+ extend Facets if key?('facet_counts')
end
def response
self['response']
end
\ No newline at end of file