private Sort querySort;
@SuppressWarnings("unchecked")
public AbstractLuceneQuery(LuceneSerializer serializer, IndexSearcher searcher,
Function<Document, T> transformer) {
queryMixin = new QueryMixin<Q>((Q) this, new DefaultQueryMetadata().noValidate());
this.serializer = serializer;
this.searcher = searcher;
this.transformer = transformer;
}