return ListenableActionFutureWrapper.wrap(execute(multiSearchOperation),
new Function<MultiSearchResponse, MultiSearchResponseWrapper>() {
@Override
public MultiSearchResponseWrapper apply(MultiSearchResponse response) {
return new DefaultMultiSearchResponseWrapper(response, AbstractIndex.this);
}
});
}