// 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: "jinaai-index",
  retriever: {
    text_similarity_reranker: {
      retriever: {
        standard: {
          query: {
            semantic: {
              field: "content",
              query: "who inspired taking care of the sea?",
            },
          },
        },
      },
      field: "content",
      rank_window_size: 100,
      inference_id: "jinaai-rerank",
      inference_text: "who inspired taking care of the sea?",
    },
  },
});
console.log(response);
----
