if( filter!=null && sort!=null ) {
hits = searcher.search(query, filter, sort);
} else if( filter!=null ) {
hits = searcher.search(query, filter);
} else if( sort!=null ) {
hits = searcher.search(query, sort);
} else {
hits = searcher.search(query);
}
//return extractHits(hits, extractor);
return queryResultCreator.createResult(hits, hitExtractor);