#NEWLINE# @ query_params ( 'analyzer' , 'attributes' , 'char_filters' , 'explain' , 'field' , 'filters' , 'format' , 'prefer_local' , 'text' , 'tokenizer' ) #NEWLINE# def analyze( self , index = None , body = None , params = None ) : #NEWLINE# #INDENT# "\n        Perform the analysis process on a text and return the tokens breakdown of the text.\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html>`_\n\n        :arg index: The name of the index to scope the operation\n        :arg body: The text on which the analysis should be performed\n        :arg analyzer: The name of the analyzer to use\n        :arg attributes: A comma-separated list of token attributes to output,\n            this parameter works only with `explain=true`\n        :arg char_filters: A comma-separated list of character filters to use\n            for the analysis\n        :arg explain: With `true`, outputs more advanced details. (default:\n            false)\n        :arg field: Use the analyzer configured for this field (instead of\n            passing the analyzer name)\n        :arg filters: A comma-separated list of filters to use for the analysis\n        :arg format: Format of the output, default 'detailed', valid choices\n            are: 'detailed', 'text'\n        :arg prefer_local: With `true`, specify that a local shard should be\n            used if available, with `false`, use a random shard (default: true)\n        :arg text: The text on which the analysis should be performed (when\n            request body is not used)\n        :arg tokenizer: The name of the tokenizer to use for the analysis\n        " #NEWLINE# return self . transport . perform_request ( 'GET' , _make_path ( index , '_analyze' ) , params = params , body = body )