app/models/spotlight/field_metadata.rb in blacklight-spotlight-3.0.0.alpha.3 vs app/models/spotlight/field_metadata.rb in blacklight-spotlight-3.0.0.alpha.4
- old
+ new
@@ -17,11 +17,10 @@
end
def field(key)
{
document_count: document_counts.fetch(field_name(key), 0),
- value_count: terms.fetch(field_name(key), []).length,
- terms: terms.fetch(field_name(key), [])
+ value_count: terms.fetch(field_name(key), []).length
}
end
def search_params
search_service.search_builder.merge(rows: 0, 'facet.limit' => FACET_LIMIT + 1)