27 lines
579 B
Plaintext
27 lines
579 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.search({
|
|
index: "movies",
|
|
retriever: {
|
|
text_similarity_reranker: {
|
|
retriever: {
|
|
standard: {
|
|
query: {
|
|
match: {
|
|
genre: "drama",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
field: "plot",
|
|
inference_id: "my-msmarco-minilm-model",
|
|
inference_text: "films that explore psychological depths",
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|