Class ValidateQueryRequest

    • Constructor Detail

      • ValidateQueryRequest

        public ValidateQueryRequest()
      • ValidateQueryRequest

        public ValidateQueryRequest​(java.lang.String... indices)
        Constructs a new validate request against the provided indices. No indices provided means it will run against all indices.
    • Method Detail

      • query

        public QueryBuilder query()
        The query to validate.
      • types

        @Deprecated
        public java.lang.String[] types()
        Deprecated.
        Types are in the process of being removed. Instead of using a type, prefer to filter on a field on the document.
        The types of documents the query will run against. Defaults to all types.
      • types

        @Deprecated
        public ValidateQueryRequest types​(java.lang.String... types)
        Deprecated.
        Types are in the process of being removed. Instead of using a type, prefer to filter on a field on the document.
        The types of documents the query will run against. Defaults to all types.
      • explain

        public void explain​(boolean explain)
        Indicate if detailed information about query is requested
      • explain

        public boolean explain()
        Indicates if detailed information about query is requested
      • rewrite

        public void rewrite​(boolean rewrite)
        Indicates whether the query should be rewritten into primitive queries
      • rewrite

        public boolean rewrite()
        Indicates whether the query should be rewritten into primitive queries
      • allShards

        public void allShards​(boolean allShards)
        Indicates whether the query should be validated on all shards instead of one random shard
      • allShards

        public boolean allShards()
        Indicates whether the query should be validated on all shards instead of one random shard
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object