[Console] Update definition for _search autocomplete (#97303)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Wylie Conlon 2021-04-19 18:17:04 -04:00 committed by GitHub
parent 89dd4b6eec
commit 563e4e68a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ export const search = (specService: SpecDefinitionsService) => {
// populated by a global rule
},
profile: {
__one_of: ['true', 'false'],
__one_of: [true, false],
},
aggs: {
__template: {
@ -118,6 +118,26 @@ export const search = (specService: SpecDefinitionsService) => {
},
},
docvalue_fields: ['{field}'],
fields: {
__one_of: [
[
{
__one_of: [
'{field}',
'*',
{
field: '{field}',
include_unmapped: {
__one_of: ['true', 'false'],
},
format: '',
},
],
},
],
'*',
],
},
collapse: {
__template: {
field: 'FIELD',
@ -144,6 +164,19 @@ export const search = (specService: SpecDefinitionsService) => {
__scope_link: 'GLOBAL.script',
},
},
runtime_mappings: {
__template: {
FIELD: {
type: '',
script: {
// populated by a global rule
},
},
},
'*': {
__scope_link: 'GLOBAL.script',
},
},
partial_fields: {
__template: {
NAME: {
@ -160,8 +193,11 @@ export const search = (specService: SpecDefinitionsService) => {
},
_source: {
__one_of: [
'{field}',
['{field}'],
'*',
'{field}',
true,
false,
{
includes: {
__one_of: ['{field}', ['{field}']],