forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_core.msearch_template.yaml
37 lines (37 loc) · 1.27 KB
/
_core.msearch_template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
openapi: 3.1.0
info:
title: Schemas of _core.msearch_template category
description: Schemas of _core.msearch_template category
version: 1.0.0
paths: {}
components:
schemas:
RequestItem:
oneOf:
- $ref: '_core.msearch.yaml#/components/schemas/MultisearchHeader'
- $ref: '#/components/schemas/TemplateConfig'
TemplateConfig:
type: object
properties:
explain:
description: When `true`, returns detailed information about score calculation as part of each hit.
type: boolean
id:
$ref: '_common.yaml#/components/schemas/Id'
params:
description: |-
The key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
type: object
additionalProperties:
type: object
profile:
description: When `true`, provides a profile for the query execution.
type: boolean
source:
description: |-
An inline search template that supports the same parameters as the Search API's
request body and Mustache variables. If no `id` is specified, this
parameter is required.
type: string