#NEWLINE# @ query_params ( 'allow_no_indices' , 'expand_wildcards' , 'ignore_unavailable' , 'local' ) #NEWLINE# def exists_type( self , index , doc_type , params = None ) : #NEWLINE# #INDENT# "\n        Check if a type/types exists in an index/indices.\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html>`_\n\n        :arg index: A comma-separated list of index names; use `_all` to check\n            the types across all indices\n        :arg doc_type: A comma-separated list of document types to check\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 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 ignore_unavailable: Whether specified concrete indices should be\n            ignored when unavailable (missing or closed)\n        :arg local: Return local information, do not retrieve the state from\n            master node (default: false)\n        " #NEWLINE# for param in ( index , doc_type ) : #NEWLINE# #INDENT# if ( param in SKIP_IN_PATH ) : #NEWLINE# #INDENT# raise ValueError ( 'Empty value passed for a required argument.' ) #NEWLINE# #UNINDENT# #UNINDENT# return self . transport . perform_request ( 'HEAD' , _make_path ( index , param ) , params = params )