public final class NxqlQueryConverter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NxqlQueryConverter.ExpressionBuilder |
static class |
NxqlQueryConverter.QueryAndFilter
Class to hold both a query and a filter
|
Modifier and Type | Method and Description |
---|---|
protected static SQLQuery |
addSecurityPolicy(CoreSession session,
SQLQuery query) |
protected static String |
completeQueryWithSelect(String nxql) |
static Map<String,Type> |
getSelectClauseFields(String nxql) |
static List<SortInfo> |
getSortInfo(String nxql) |
protected static SQLQuery |
getSqlQuery(String nxql) |
protected static String |
likeToWildcard(String like)
Turns a NXQL LIKE pattern into a wildcard for WildcardQuery.
|
static NxqlQueryConverter.QueryAndFilter |
makeQueryFromSimpleExpression(String op,
String nxqlName,
Object value,
Object[] values,
EsHint hint,
CoreSession session) |
static org.elasticsearch.index.query.QueryBuilder |
toESQueryBuilder(String nxql) |
static org.elasticsearch.index.query.QueryBuilder |
toESQueryBuilder(String nxql,
CoreSession session) |
static String |
translateFulltextQuery(String query)
Translates from Nuxeo syntax to Elasticsearch simple_query_string syntax.
|
public static org.elasticsearch.index.query.QueryBuilder toESQueryBuilder(String nxql)
public static org.elasticsearch.index.query.QueryBuilder toESQueryBuilder(String nxql, CoreSession session)
protected static SQLQuery getSqlQuery(String nxql)
protected static SQLQuery addSecurityPolicy(CoreSession session, SQLQuery query)
protected static String completeQueryWithSelect(String nxql)
public static NxqlQueryConverter.QueryAndFilter makeQueryFromSimpleExpression(String op, String nxqlName, Object value, Object[] values, EsHint hint, CoreSession session)
protected static String likeToWildcard(String like)
% and _ are standard wildcards, and \ escapes them.
public static List<SortInfo> getSortInfo(String nxql)
public static Map<String,Type> getSelectClauseFields(String nxql)
public static String translateFulltextQuery(String query)
Copyright © 2017 Nuxeo. All rights reserved.