Added/updated snippets for docs (#2318)
This commit is contained in:
@ -4,15 +4,12 @@
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.indices.putMapping({
|
||||
index: 'publications',
|
||||
body: {
|
||||
properties: {
|
||||
title: {
|
||||
type: 'text'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
index: "publications",
|
||||
properties: {
|
||||
title: {
|
||||
type: "text",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user