Files
elasticsearch-js/docs/doc_examples/f4ae3f3fbf07a7d39122ac5ac20b9c03.asciidoc
2024-07-29 17:10:05 -05:00

27 lines
540 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.indices.create({
index: "quantized-image-index",
mappings: {
properties: {
"image-vector": {
type: "dense_vector",
element_type: "float",
dims: 2,
index: true,
index_options: {
type: "int8_hnsw",
},
},
title: {
type: "text",
},
},
},
});
console.log(response);
----