// 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-float",
  mappings: {
    properties: {
      my_vector: {
        type: "rank_vectors",
      },
    },
  },
});
console.log(response);

const response1 = await client.index({
  index: "my-rank-vectors-float",
  id: 1,
  document: {
    my_vector: [
      [0.5, 10, 6],
      [-0.5, 10, 10],
    ],
  },
});
console.log(response1);
----
