public interface QueryCompiler
Modifier and Type | Interface and Description |
---|---|
static class | QueryCompiler.MatchPriority Specifies how the query returned by compileQuery(String) should be applied |
Modifier and Type | Method and Description |
---|---|
default JsonObject | compileQuery(QueryPart queryPart) Create an Elasticsearch query for the given GeoRocket query part. |
default JsonObject | compileQuery(String search) Create an Elasticsearch query for the given search string. |
default QueryCompiler.MatchPriority | getQueryPriority(QueryPart queryPart) Get the priority with which the Elasticsearch query returned by compileQuery(QueryPart) should be applied for the given GeoRocket query part |
default QueryCompiler.MatchPriority | getQueryPriority(String search) Get the priority with which the Elasticsearch query returned by compileQuery(String) should be applied for the given search string |
default QueryCompiler.MatchPriority getQueryPriority(String search)
compileQuery(String)
should be applied for the given search stringsearch
- the search stringdefault QueryCompiler.MatchPriority getQueryPriority(QueryPart queryPart)
compileQuery(QueryPart)
should be applied for the given GeoRocket query partqueryPart
- the GeoRocket query partdefault JsonObject compileQuery(String search)
Create an Elasticsearch query for the given search string.
Heads up: implementors may use the helper methods from ElasticsearchQueryHelper
to build the query.
search
- the search stringdefault JsonObject compileQuery(QueryPart queryPart)
Create an Elasticsearch query for the given GeoRocket query part.
Heads up: implementors may use the helper methods from ElasticsearchQueryHelper
to build the query.
queryPart
- the GeoRocket query part