mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 22:09:24 +00:00
make more readable
Original commit: elastic/x-pack-elasticsearch@c7727618ac
This commit is contained in:
parent
12a6de0a57
commit
3e45310877
@ -185,7 +185,7 @@ public class AlertsStore extends AbstractComponent {
|
||||
.setTypes(AlertManager.ALERT_TYPE)
|
||||
.setIndices(AlertManager.ALERT_INDEX).get();
|
||||
try {
|
||||
for (; response.getHits().hits().length != 0; response = client.prepareSearchScroll(response.getScrollId()).setScroll(scrollTimeout).get()) {
|
||||
while (response.getHits().hits().length != 0) {
|
||||
for (SearchHit sh : response.getHits()) {
|
||||
String alertId = sh.getId();
|
||||
Alert alert = parseAlert(alertId, sh);
|
||||
|
Loading…
x
Reference in New Issue
Block a user