/** * Get the priority with which the Elasticsearch query returned by * {@link #compileQuery(QueryPart)} should be applied for the given * GeoRocket query part * @param queryPart the GeoRocket query part * @return the priority * @since 1.1.0 */ default MatchPriority getQueryPriority(QueryPart queryPart) { if (queryPart instanceof StringQueryPart) { return getQueryPriority(((StringQueryPart)queryPart).getSearchString()); } return MatchPriority.NONE; }
JsonObject bqb = boolQuery(1); for (QueryCompiler f : queryCompilers) { MatchPriority mp = f.getQueryPriority(str); if (mp == null) { continue;