We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b9c49 commit e2d2f28Copy full SHA for e2d2f28
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py
@@ -84,10 +84,9 @@ def get_item_collection(
84
"bool", should=[Q("match_phrase", **{"collection": collection_id})]
85
)
86
search = search.query(collection_filter)
87
- try:
88
- count = search.count()
89
- except elasticsearch.exceptions.NotFoundError:
90
- raise NotFoundError("No items exist")
+
+ count = self.search_count(search)
91
# search = search.sort({"id.keyword" : {"order" : "asc"}})
92
search = search.query()[0:limit]
93
collection_children = search.execute().to_dict()
0 commit comments