渲染搜索模板 API
编辑渲染搜索模板 API
编辑resp = client.render_search_template( id="my-search-template", params={ "query_string": "hello world", "from": 20, "size": 10 }, ) print(resp)
response = client.render_search_template( body: { id: 'my-search-template', params: { query_string: 'hello world', from: 20, size: 10 } } ) puts response
const response = await client.renderSearchTemplate({ id: "my-search-template", params: { query_string: "hello world", from: 20, size: 10, }, }); console.log(response);
POST _render/template { "id": "my-search-template", "params": { "query_string": "hello world", "from": 20, "size": 10 } }
请求
编辑GET _render/template
GET _render/template/<template-id>
POST _render/template
POST _render/template/<template-id>
路径参数
编辑-
<template-id>
- (必需*,字符串)要渲染的搜索模板的 ID。如果未指定
source
,则需要此参数或id
请求主体参数。