Class PageProviderQueryBuilder


  • public class PageProviderQueryBuilder
    extends Object
    Elasticsearch query builder for Native Page provider.
    • Method Detail

      • makeQuery

        public static org.elasticsearch.index.query.QueryBuilder makeQuery​(String pattern,
                                                                           Object[] params,
                                                                           boolean quotePatternParameters,
                                                                           boolean escapePatternParameters,
                                                                           boolean useNativeQuery)
        Create a ES request from a PP pattern
      • makeQuery

        public static org.elasticsearch.index.query.QueryBuilder makeQuery​(DocumentModel model,
                                                                           WhereClauseDefinition whereClause,
                                                                           Object[] params,
                                                                           boolean useNativeQuery)
        Create a ES request from a PP whereClause
      • convertParam

        protected static String convertParam​(Object param,
                                             boolean quote)
        Convert a params for fixed part
      • isNonNullParam

        protected static boolean isNonNullParam​(Object[] val)