public class LuceneQuery extends AbstractLuceneQuery<org.apache.lucene.document.Document,LuceneQuery>
LuceneQuery
is a Querydsl query implementation for Lucene queries.
Example:
QDocument doc = new QDocument("doc");
IndexSearcher searcher = new IndexSearcher(index);
LuceneQuery query = new LuceneQuery(true, searcher);
List<Document> documents = query
.where(doc.year.between("1800", "2000").and(doc.title.startsWith("Huckle"))
.fetch();
Constructor and Description |
---|
LuceneQuery(org.apache.lucene.search.IndexSearcher searcher) |
LuceneQuery(LuceneSerializer luceneSerializer,
org.apache.lucene.search.IndexSearcher searcher) |
asFilter, createQuery, distinct, distinct, fetch, fetchCount, fetchFirst, fetchOne, fetchResults, filter, iterate, limit, load, load, offset, orderBy, orderBy, restrict, set, sort, toString, where, where
public LuceneQuery(org.apache.lucene.search.IndexSearcher searcher)
public LuceneQuery(LuceneSerializer luceneSerializer, org.apache.lucene.search.IndexSearcher searcher)
Copyright © 2007–2016 Querydsl. All rights reserved.