} finally {
cleanContext(context);
}
}
public QuerySearchResult executeQueryPhase(QuerySearchRequest request) {
<BUG>final SearchContext context = findContext(request.id());
contextProcessing(context);</BUG>
context.searcher().setAggregatedDfs(request.dfs());
<BUG>IndexShard indexShard = context.indexShard();
SearchOperationListener operationListener = indexShard.getSearchOperationListener();
try {</BUG>
operationListener.onPreQueryPhase(context);

} finally {
cleanContext(context);
}
}
public ScrollQuerySearchResult executeQueryPhase(InternalScrollSearchRequest request) {
final SearchContext context = findContext(request.id());
SearchOperationListener operationListener = context.indexShard().getSearchOperationListener();
context.incRef();
try {
operationListener.onPreQueryPhase(context);
