public class LuceneQueryParsingResult extends Object
| Constructor and Description |
|---|
LuceneQueryParsingResult(org.apache.lucene.search.Query query,
String targetEntityName,
Class<?> targetEntity,
List<String> projections,
org.apache.lucene.search.Sort sort) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getProjections()
Returns the projections of the parsed query, represented as dot paths in case of references to fields of embedded
entities, e.g.
|
org.apache.lucene.search.Query |
getQuery()
Returns the Lucene query created while walking the parse tree.
|
org.apache.lucene.search.Sort |
getSort()
Returns the optional Lucene sort specification.
|
Class<?> |
getTargetEntity()
Returns the entity type of the parsed query as derived from the queried entity name via the configured
EntityNamesResolver. |
String |
getTargetEntityName()
Returns the original entity name as given in the query
|
String |
toString() |
public org.apache.lucene.search.Query getQuery()
public String getTargetEntityName()
public Class<?> getTargetEntity()
EntityNamesResolver.public List<String> getProjections()
["foo", "bar.qaz"].public org.apache.lucene.search.Sort getSort()
Sort object or null if the query string does not specify sortingCopyright © 2016. All rights reserved.