return ListenableActionFutureWrapper.wrap(execute(searchOperation),
new Function<SearchResponse, SearchResponseWrapper>() {
@Override
public SearchResponseWrapper apply(SearchResponse response) {
return new DefaultSearchResponseWrapper(response, AbstractIndex.this);
}
});
}