public class LuceneQueryConverter extends QueryConverter<org.apache.lucene.search.Query>
Query
equal to, or more liberal than the given EOQualifier
. Search results
found using returned qualifier might therefore need additional filtering.Constructor and Description |
---|
LuceneQueryConverter() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.Query |
comparison(EOEntity entity,
String key,
ComparisonOperator operator,
Object value)
Creates clause that matches records where the given entity key matches given value using comparison operator.
|
protected org.apache.lucene.search.Query |
convertKeyValueQualifier(EOEntity entity,
EOKeyValueQualifier qual) |
org.apache.lucene.search.Query |
fullQuery(EOEntity entity,
EOQualifier qualifier) |
boolean |
isQueryFullyCovered() |
protected org.apache.lucene.search.Query |
joinWithAndOperator(Collection<org.apache.lucene.search.Query> queries) |
protected org.apache.lucene.search.Query |
joinWithOrOperator(Collection<org.apache.lucene.search.Query> queries) |
protected org.apache.lucene.search.Query |
matchAll() |
static org.apache.lucene.search.Query |
matchAllOfEntity(EOEntity entity) |
protected org.apache.lucene.search.Query |
negate(org.apache.lucene.search.Query query)
Creates negation of the given clause.
|
convert
protected org.apache.lucene.search.Query negate(org.apache.lucene.search.Query query)
QueryConverter
negate
in class QueryConverter<org.apache.lucene.search.Query>
query
- clause to negateprotected org.apache.lucene.search.Query joinWithAndOperator(Collection<org.apache.lucene.search.Query> queries)
joinWithAndOperator
in class QueryConverter<org.apache.lucene.search.Query>
queries
- clauses to join with logical conjunctiontrue
if all of queries evaluate to true
protected org.apache.lucene.search.Query joinWithOrOperator(Collection<org.apache.lucene.search.Query> queries)
joinWithOrOperator
in class QueryConverter<org.apache.lucene.search.Query>
queries
- clauses to join with logical alternativetrue
if at least one of queries evaluates to true
protected org.apache.lucene.search.Query matchAll()
matchAll
in class QueryConverter<org.apache.lucene.search.Query>
public static org.apache.lucene.search.Query matchAllOfEntity(EOEntity entity)
protected org.apache.lucene.search.Query convertKeyValueQualifier(EOEntity entity, EOKeyValueQualifier qual)
convertKeyValueQualifier
in class QueryConverter<org.apache.lucene.search.Query>
protected org.apache.lucene.search.Query comparison(EOEntity entity, String key, ComparisonOperator operator, Object value)
QueryConverter
comparison
in class QueryConverter<org.apache.lucene.search.Query>
public org.apache.lucene.search.Query fullQuery(EOEntity entity, EOQualifier qualifier)
fullQuery
in class QueryConverter<org.apache.lucene.search.Query>
public boolean isQueryFullyCovered()
Copyright © 2002 – 2024 Project Wonder.