|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.lucene.LuceneQuery
public class LuceneQuery
LuceneQuery is a Querydsl query implementation for Lucene queries.
Constructor Summary | |
---|---|
LuceneQuery(LuceneSerializer serializer,
org.apache.lucene.search.Searcher searcher)
|
|
LuceneQuery(org.apache.lucene.search.Searcher searcher)
|
Method Summary | ||
---|---|---|
long |
count()
Get the count of matched elements |
|
long |
countDistinct()
Get the count of distinct matched elements |
|
LuceneQuery |
limit(long limit)
Defines the limit / max results for the query results |
|
List<org.apache.lucene.document.Document> |
list()
Get the projection as a typed List |
|
List<org.apache.lucene.document.Document> |
listDistinct()
Get the projection as a typed List with distinct elements |
|
SearchResults<org.apache.lucene.document.Document> |
listDistinctResults()
Get the projection in SearchResults form with distinct element |
|
SearchResults<org.apache.lucene.document.Document> |
listResults()
Get the projection in SearchResults form |
|
LuceneQuery |
offset(long offset)
Defines the offset for the query results |
|
LuceneQuery |
orderBy(OrderSpecifier<?>... o)
Defines the order expressions |
|
LuceneQuery |
restrict(QueryModifiers modifiers)
Defines both limit and offset of the query results |
|
|
set(Param<T> param,
T value)
Set the given parameter to the given value |
|
org.apache.lucene.document.Document |
uniqueResult()
Get the projection as a unique result |
|
LuceneQuery |
where(EBoolean... e)
Defines the filter constraints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuceneQuery(LuceneSerializer serializer, org.apache.lucene.search.Searcher searcher)
public LuceneQuery(org.apache.lucene.search.Searcher searcher)
Method Detail |
---|
public long count()
SimpleProjectable
count
in interface SimpleProjectable<org.apache.lucene.document.Document>
public long countDistinct()
SimpleProjectable
countDistinct
in interface SimpleProjectable<org.apache.lucene.document.Document>
public LuceneQuery limit(long limit)
SimpleQuery
limit
in interface SimpleQuery<LuceneQuery>
public List<org.apache.lucene.document.Document> list()
SimpleProjectable
list
in interface SimpleProjectable<org.apache.lucene.document.Document>
public List<org.apache.lucene.document.Document> listDistinct()
SimpleProjectable
listDistinct
in interface SimpleProjectable<org.apache.lucene.document.Document>
public SearchResults<org.apache.lucene.document.Document> listDistinctResults()
SimpleProjectable
SearchResults
form with distinct element
listDistinctResults
in interface SimpleProjectable<org.apache.lucene.document.Document>
public SearchResults<org.apache.lucene.document.Document> listResults()
SimpleProjectable
SearchResults
form
listResults
in interface SimpleProjectable<org.apache.lucene.document.Document>
public LuceneQuery offset(long offset)
SimpleQuery
offset
in interface SimpleQuery<LuceneQuery>
public LuceneQuery orderBy(OrderSpecifier<?>... o)
SimpleQuery
orderBy
in interface SimpleQuery<LuceneQuery>
public LuceneQuery restrict(QueryModifiers modifiers)
SimpleQuery
restrict
in interface SimpleQuery<LuceneQuery>
public <T> LuceneQuery set(Param<T> param, T value)
SimpleQuery
set
in interface SimpleQuery<LuceneQuery>
public org.apache.lucene.document.Document uniqueResult()
SimpleProjectable
uniqueResult
in interface SimpleProjectable<org.apache.lucene.document.Document>
public LuceneQuery where(EBoolean... e)
SimpleQuery
where
in interface SimpleQuery<LuceneQuery>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |