#NEWLINE# @ query_params ( 'consistency' , 'parent' , 'pipeline' , 'refresh' , 'routing' , 'timeout' , 'timestamp' , 'ttl' , 'version' , 'version_type' ) #NEWLINE# def create( self , index , doc_type , body , id = None , params = None ) : #NEWLINE# #INDENT# "\n        Adds a typed JSON document in a specific index, making it searchable.\n        Behind the scenes this method calls index(..., op_type='create')\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html>`_\n\n        :arg index: The name of the index\n        :arg doc_type: The type of the document\n        :arg body: The document\n        :arg id: Document ID\n        :arg consistency: Explicit write consistency setting for the operation,\n            valid choices are: 'one', 'quorum', 'all'\n        :arg op_type: Explicit operation type, default 'index', valid choices\n            are: 'index', 'create'\n        :arg parent: ID of the parent document\n        :arg refresh: Refresh the index after performing the operation\n        :arg routing: Specific routing value\n        :arg timeout: Explicit operation timeout\n        :arg timestamp: Explicit timestamp for the document\n        :arg ttl: Expiration time for the document\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# return self . index ( index , doc_type , index , id = id , params = params , op_type = 'create' )