public class ElasticQueryCompiler extends QueryCompiler<ElasticConstraint>
ElasticQuery
and ElasticFilterFactory
.QueryCompiler.FieldValue
ctx, descriptor, factory, reader, searchFields
Constructor and Description |
---|
ElasticQueryCompiler(FilterFactory<ElasticConstraint> factory,
EntityDescriptor descriptor,
String query,
List<QueryField> searchFields)
Creates a new instance for the given factory entity and query.
|
Modifier and Type | Method and Description |
---|---|
protected ElasticConstraint |
compileSearchToken(Mapping field,
QueryField.Mode mode,
String value) |
compile, compileDefaultSearch, compileFieldEquals, parseOperation
public ElasticQueryCompiler(FilterFactory<ElasticConstraint> factory, EntityDescriptor descriptor, String query, List<QueryField> searchFields)
factory
- the factory used to create constraintsdescriptor
- the descriptor of entities being queriedquery
- the query to compilesearchFields
- the default search fields to queryprotected ElasticConstraint compileSearchToken(Mapping field, QueryField.Mode mode, String value)
compileSearchToken
in class QueryCompiler<ElasticConstraint>
Copyright © 2018. All rights reserved.