// 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: "my-rank-vectors-bit", mappings: { properties: { my_vector: { type: "rank_vectors", element_type: "bit", }, }, }, }); console.log(response); const response1 = await client.bulk({ index: "my-rank-vectors-bit", refresh: "true", operations: [ { index: { _id: "1", }, }, { my_vector: [127, -127, 0, 1, 42], }, { index: { _id: "2", }, }, { my_vector: "8100012a7f", }, ], }); console.log(response1); ----