diff --git a/src/main/java/org/elasticsearch/action/search/ClearScrollRequest.java b/src/main/java/org/elasticsearch/action/search/ClearScrollRequest.java index c6b6b31f32f..4ffd5e29ceb 100644 --- a/src/main/java/org/elasticsearch/action/search/ClearScrollRequest.java +++ b/src/main/java/org/elasticsearch/action/search/ClearScrollRequest.java @@ -52,6 +52,14 @@ public class ClearScrollRequest extends ActionRequest { scrollIds.add(scrollId); } + public List scrollIds() { + return scrollIds; + } + + public void scrollIds(List scrollIds) { + this.scrollIds = scrollIds; + } + @Override public ActionRequestValidationException validate() { ActionRequestValidationException validationException = null; diff --git a/src/main/java/org/elasticsearch/action/search/SearchResponse.java b/src/main/java/org/elasticsearch/action/search/SearchResponse.java index 09a997610ff..76575368df0 100644 --- a/src/main/java/org/elasticsearch/action/search/SearchResponse.java +++ b/src/main/java/org/elasticsearch/action/search/SearchResponse.java @@ -171,6 +171,10 @@ public class SearchResponse extends ActionResponse implements StatusToXContent { return scrollId; } + public void scrollId(String scrollId) { + this.scrollId = scrollId; + } + static final class Fields { static final XContentBuilderString _SCROLL_ID = new XContentBuilderString("_scroll_id"); static final XContentBuilderString _SHARDS = new XContentBuilderString("_shards");