#NEWLINE# @ query_params ( 'field_statistics' , 'fields' , 'offsets' , 'parent' , 'payloads' , 'positions' , 'preference' , 'realtime' , 'routing' , 'term_statistics' , 'version' , 'version_type' ) #NEWLINE# def termvectors( self , index , doc_type , id = None , body = None , params = None ) : #NEWLINE# #INDENT# "\n        Returns information and statistics on terms in the fields of a\n        particular document. The document could be stored in the index or\n        artificially provided by the user (Added in 1.4). Note that for\n        documents stored in the index, this is a near realtime API as the term\n        vectors are not available until the next refresh.\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html>`_\n\n        :arg index: The index in which the document resides.\n        :arg doc_type: The type of the document.\n        :arg id: The id of the document, when not specified a doc param should\n            be supplied.\n        :arg body: Define parameters and or supply a document to get termvectors\n            for. See documentation.\n        :arg field_statistics: Specifies if document count, sum of document\n            frequencies and sum of total term frequencies should be returned.,\n            default True\n        :arg fields: A comma-separated list of fields to return.\n        :arg offsets: Specifies if term offsets should be returned., default\n            True\n        :arg parent: Parent id of documents.\n        :arg payloads: Specifies if term payloads should be returned., default\n            True\n        :arg positions: Specifies if term positions should be returned., default\n            True\n        :arg preference: Specify the node or shard the operation should be\n            performed on (default: random).\n        :arg realtime: Specifies if request is real-time as opposed to near-\n            real-time (default: true).\n        :arg routing: Specific routing value.\n        :arg term_statistics: Specifies if total term frequency and document\n            frequency should be returned., default False\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 ( index , doc_type , id , '_termvectors' ) , params = params , body = body )