Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 1.03 KB

File metadata and controls

33 lines (22 loc) · 1.03 KB
code type title description
true
page
set
CollectionMapping:set

set

Adds or updates a field mapping.

:::info Changes made by this function won't be applied until you call the apply method :::


set(field, mapping)

Arguments Type Description
field string Name of the field from which the mapping is to be added or updated
mapping JSON Object Mapping for this field, following the Elasticsearch Mapping format

Return Value

Returns this CollectionMapping object to allow chaining.

Usage

<<< ./snippets/set-1.java