You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @option arguments [String] :id Document ID (optional, will be auto-generated if missing)
54
71
# @option arguments [String] :index The name of the index (*Required*)
55
72
# @option arguments [String] :type The type of the document (*Required*)
56
-
# @option arguments [Hash] :body The document (*Required*)
57
-
# @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
73
+
# @option arguments [Hash] :body The document
74
+
# @option arguments [String] :consistency Explicit write consistency setting for the operation
75
+
# (options: one, quorum, all)
76
+
# @option arguments [Boolean] :include_type_name Whether a type should be expected in the body of the mappings.
# @option arguments [String] :parent ID of the parent document
60
-
# @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for)
79
+
# @option arguments [String] :percolate Percolator queries to execute while indexing the document
80
+
# @option arguments [Boolean] :refresh Refresh the index after performing the operation
81
+
# @option arguments [String] :replication Specific replication type (options: sync, async)
61
82
# @option arguments [String] :routing Specific routing value
# @option arguments [Time] :timestamp Explicit timestamp for the document
85
+
# @option arguments [Duration] :ttl Expiration time for the document
63
86
# @option arguments [Number] :version Explicit version number for concurrency control
64
87
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force)
65
-
# @option arguments [Number] :if_seq_no only perform the index operation if the last operation that has changed the document has the specified sequence number
66
-
# @option arguments [Number] :if_primary_term only perform the index operation if the last operation that has changed the document has the specified primary term
67
-
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
0 commit comments