Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/app/repositories/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ def search_attributes(
"from": from_value,
"size": size,
"sort": [{sort_by: {"order": sort_order}}],
# The exact total, not "10000+": Explore shows it.
"track_total_hits": True,
}
response = OpenSearchClient.search(index="misp-attributes", body=search_body)

Expand Down
2 changes: 2 additions & 0 deletions api/app/repositories/correlations.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ def search_correlations(
"from": from_value,
"size": size,
"sort": [{sort_by: {"order": sort_order}}],
# The exact total, not "10000+": Explore shows it.
"track_total_hits": True,
}

try:
Expand Down
2 changes: 2 additions & 0 deletions api/app/repositories/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def search_events(
"from": from_value,
"size": size,
"sort": [{sort_by: {"order": sort_order}}],
# The exact total, not "10000+": Explore shows it.
"track_total_hits": True,
}
response = OpenSearchClient.search(index=index, body=search_body)

Expand Down
Loading