540co / epa-rfi-backend

API prototype for EPA Environmental Digital Services using NodeJS and ElasticSearch.
5 stars 0 forks source link

Facilities api is returning facilities resources in context of the limit #12

Closed patricknowlan closed 8 years ago

patricknowlan commented 8 years ago

The aggregation gets run across the number of "reports" so if the limit is 50, 50 reports will be returned and then the facilities are derived from the 50 reports resulting in 6 facilities. If the limit is 100 then the number of facilities is 8.

aaronbullard commented 8 years ago

fixed