lib/elasticsearch/api/actions/get.rb in elasticsearch-api-8.3.0 vs lib/elasticsearch/api/actions/get.rb in elasticsearch-api-8.4.0
- old
+ new
@@ -13,20 +13,21 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-# Auto generated from build hash 7faba7ad1bfe9ef9b821e7bca858346ca80e6030
+# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
#
module Elasticsearch
module API
module Actions
# Returns a document.
#
# @option arguments [String] :id The document ID
# @option arguments [String] :index The name of the index
+ # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.
# @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
# @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode
# @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation
# @option arguments [String] :routing Specific routing value
@@ -35,10 +36,10 @@
# @option arguments [List] :_source_includes A list of fields to extract and return from the _source field
# @option arguments [Number] :version Explicit version number for concurrency control
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte)
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-get.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html
#
def get(arguments = {})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]