#NEWLINE# @ query_params ( 'allow_no_indices' , 'expand_wildcards' , 'ignore_unavailable' , 'percolate_index' , 'percolate_type' , 'preference' , 'routing' , 'version' , 'version_type' ) #NEWLINE# def count_percolate( self , index , doc_type , id = None , body = None , params = None ) : #NEWLINE# #INDENT# "\n        The percolator allows to register queries against an index, and then\n        send percolate requests which include a doc, and getting back the\n        queries that match on that doc out of the set of registered queries.\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html>`_\n\n        :arg index: The index of the document being count percolated.\n        :arg doc_type: The type of the document being count percolated.\n        :arg id: Substitute the document in the request body with a document\n            that is known by the specified id. On top of the id, the index and\n            type parameter will be used to retrieve the document from within the\n            cluster.\n        :arg body: The count percolator request definition using the percolate\n            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 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 percolate_index: The index to count percolate the document into.\n            Defaults to index.\n        :arg percolate_type: The type to count percolate document into. Defaults\n            to type.\n        :arg preference: Specify the node or shard the operation should be\n            performed on (default: random)\n        :arg routing: A comma-separated list of specific routing values\n        :arg version: Explicit version number for concurrency control\n        :arg version_type: Specific version type, valid choices are: 'internal',\n            'external', 'external_gte', 'force'\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 ( 'GET' , _make_path ( param , doc_type , id , '_percolate' , 'count' ) , params = params , body = body )