Skip to content

Commit

Permalink
Fixed search download -
Browse files Browse the repository at this point in the history
need to filter to only PAs using index, not ype
  • Loading branch information
Ben Tregenna authored and Ben Tregenna committed Aug 13, 2019
1 parent 6248b36 commit f82cb1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/models/saved_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ def wdpa_ids

def search
@search ||= Search.search(search_term, {
filters: {'type' => 'protected_area'}.merge(parsed_filters || {}),
without_aggregations: true,
size: 9999
})
filters: parsed_filters || {},
without_aggregations: true,
size: 9999
},
Search::PA_INDEX)
end
end

0 comments on commit f82cb1c

Please sign in to comment.