public class LuceneSerializer extends Object
Modifier and Type | Field and Description |
---|---|
static LuceneSerializer |
DEFAULT |
Constructor and Description |
---|
LuceneSerializer(boolean lowerCase,
boolean splitTerms) |
LuceneSerializer(boolean lowerCase,
boolean splitTerms,
Locale sortLocale) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.Query |
between(Operation<?> operation,
QueryMetadata metadata) |
protected String[] |
convert(Path<?> leftHandSide,
Expression<?> rightHandSide,
QueryMetadata metadata)
template method
|
protected String[] |
convert(Path<?> leftHandSide,
Object rightHandSide)
template method
|
protected org.apache.lucene.search.Query |
endsWith(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
eq(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
eq(String field,
String[] terms,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
ge(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
gt(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
in(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
le(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
like(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
lt(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
ne(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
notIn(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected <N extends Number> |
numericRange(Class<N> clazz,
String field,
N min,
N max,
boolean minInc,
boolean maxInc) |
protected org.apache.lucene.search.Query |
range(Path<?> leftHandSide,
String field,
Expression<?> min,
Expression<?> max,
boolean minInc,
boolean maxInc,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
startsWith(QueryMetadata metadata,
Operation<?> operation,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
stringContains(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
stringRange(Path<?> leftHandSide,
String field,
Expression<?> min,
Expression<?> max,
boolean minInc,
boolean maxInc,
QueryMetadata metadata) |
protected String |
toField(Path<?> path)
template method, override to customize
|
org.apache.lucene.search.Query |
toQuery(Expression<?> expr,
QueryMetadata metadata) |
org.apache.lucene.search.Sort |
toSort(List<? extends OrderSpecifier<?>> orderBys) |
public static final LuceneSerializer DEFAULT
public LuceneSerializer(boolean lowerCase, boolean splitTerms)
public LuceneSerializer(boolean lowerCase, boolean splitTerms, Locale sortLocale)
protected org.apache.lucene.search.Query like(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query eq(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query in(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query notIn(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query ne(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query startsWith(QueryMetadata metadata, Operation<?> operation, boolean ignoreCase)
protected org.apache.lucene.search.Query stringContains(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query endsWith(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query between(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query lt(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query gt(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query le(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query ge(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query range(Path<?> leftHandSide, String field, @Nullable Expression<?> min, @Nullable Expression<?> max, boolean minInc, boolean maxInc, QueryMetadata metadata)
protected <N extends Number> org.apache.lucene.search.NumericRangeQuery<?> numericRange(Class<N> clazz, String field, @Nullable N min, @Nullable N max, boolean minInc, boolean maxInc)
protected org.apache.lucene.search.Query stringRange(Path<?> leftHandSide, String field, @Nullable Expression<?> min, @Nullable Expression<?> max, boolean minInc, boolean maxInc, QueryMetadata metadata)
protected String toField(Path<?> path)
path
- pathprotected String[] convert(Path<?> leftHandSide, Expression<?> rightHandSide, QueryMetadata metadata)
leftHandSide
- left hand siderightHandSide
- right hand sideprotected String[] convert(Path<?> leftHandSide, Object rightHandSide)
leftHandSide
- left hand siderightHandSide
- right hand sidepublic org.apache.lucene.search.Query toQuery(Expression<?> expr, QueryMetadata metadata)
public org.apache.lucene.search.Sort toSort(List<? extends OrderSpecifier<?>> orderBys)
Copyright © 2007–2016 Querydsl. All rights reserved.