#NEWLINE# @ query_params ( 'allow_no_indices' , 'analyze_wildcard' , 'analyzer' , 'default_operator' , 'df' , 'expand_wildcards' , 'explain' , 'ignore_unavailable' , 'lenient' , 'lowercase_expanded_terms' , 'operation_threading' , 'q' , 'rewrite' ) #NEWLINE# def validate_query( self , index = None , doc_type = None , body = None , params = None ) : #NEWLINE# #INDENT# "\n        Validate a potentially expensive query without executing it.\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html>`_\n\n        :arg index: A comma-separated list of index names to restrict the\n            operation; use `_all` or empty string to perform the operation on\n            all indices\n        :arg doc_type: A comma-separated list of document types to restrict the\n            operation; leave empty to perform the operation on all types\n        :arg body: The query definition specified with the Query DSL\n        :arg allow_no_indices: Whether to ignore if a wildcard indices\n            expression resolves into no concrete indices. (This includes `_all`\n            string or when no indices have been specified)\n        :arg analyze_wildcard: Specify whether wildcard and prefix queries\n            should be analyzed (default: false)\n        :arg analyzer: The analyzer to use for the query string\n        :arg default_operator: The default operator for query string query (AND\n            or OR), default 'OR', valid choices are: 'AND', 'OR'\n        :arg df: The field to use as default where no field prefix is given in\n            the query string\n        :arg expand_wildcards: Whether to expand wildcard expression to concrete\n            indices that are open, closed or both., default 'open', valid\n            choices are: 'open', 'closed', 'none', 'all'\n        :arg explain: Return detailed information about the error\n        :arg ignore_unavailable: Whether specified concrete indices should be\n            ignored when unavailable (missing or closed)\n        :arg lenient: Specify whether format-based query failures (such as\n            providing text to a numeric field) should be ignored\n        :arg lowercase_expanded_terms: Specify whether query terms should be\n            lowercased\n        :arg operation_threading: TODO: ?\n        :arg q: Query in the Lucene query string syntax\n        :arg rewrite: Provide a more detailed explanation showing the actual\n            Lucene query that will be executed.\n        " #NEWLINE# return self . transport . perform_request ( 'GET' , _make_path ( index , doc_type , '_validate' , 'query' ) , params = params , body = body )