Skip to content

Commit

Permalink
documents: fix libraries aggregations
Browse files Browse the repository at this point in the history
* Limits the number of terms in the libraries aggregations facets from
10 to 50.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
  • Loading branch information
jma committed Oct 4, 2021
1 parent 4a8fdf9 commit 5b13154
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rero_ils/modules/libraries/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ def get_libraries_by_organisation_pid(self, org_pid, fields=None):
query = self.filter('term', organisation__pid=org_pid)
if fields:
query = query.source(includes=fields)
response = query.execute()
for hit in response.hits.hits:
yield hit._source
for result in query.scan():
yield result


class Library(IlsRecord):
Expand Down

0 comments on commit 5b13154

Please sign in to comment.