// 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.search({
  index: "test-index",
  query: {
    match: {
      my_semantic_field: "Which country is Paris in?",
    },
  },
  highlight: {
    fields: {
      my_semantic_field: {
        number_of_fragments: 2,
        order: "score",
      },
    },
  },
});
console.log(response);
----
