mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
Added scrollId/s setters to the different scroll requests/responses
This commit is contained in:
parent
964db64ed1
commit
b619cd1112
@ -52,6 +52,14 @@ public class ClearScrollRequest extends ActionRequest<ClearScrollRequest> {
|
||||
scrollIds.add(scrollId);
|
||||
}
|
||||
|
||||
public List<String> scrollIds() {
|
||||
return scrollIds;
|
||||
}
|
||||
|
||||
public void scrollIds(List<String> scrollIds) {
|
||||
this.scrollIds = scrollIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionRequestValidationException validate() {
|
||||
ActionRequestValidationException validationException = null;
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user