primedia-endeca 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- data/endeca.gemspec +1 -1
- data/lib/endeca.rb +1 -1
- data/lib/endeca/document_collection.rb +1 -1
- data/spec/endeca/document_collection_spec.rb +1 -1
- metadata +1 -1
data/endeca.gemspec
CHANGED
data/lib/endeca.rb
CHANGED
@@ -62,7 +62,7 @@ module Endeca
|
|
62
62
|
if @raw['Records']
|
63
63
|
@documents ||= @raw['Records'].map(&@document_klass)
|
64
64
|
elsif @raw['AggrRecords']
|
65
|
-
@documents ||= @raw['AggrRecords']['Records'].map(&@document_klass)
|
65
|
+
@documents ||= @raw['AggrRecords'].map{|aggregate| aggregate['Records'].first}.map(&@document_klass)
|
66
66
|
else
|
67
67
|
[]
|
68
68
|
end
|