Added scrollId/s setters to the different scroll requests/responses

This commit is contained in:
uboness 2014-09-15 13:56:48 +03:00
parent 964db64ed1
commit b619cd1112
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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");