mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
(cherry picked from commit d3a750eb15
)
Co-authored-by: Jen Huang <jen.huang@elastic.co>
This commit is contained in:
parent
64e69c8902
commit
2c7cc70ce9
2 changed files with 16 additions and 1 deletions
|
@ -36,6 +36,18 @@ describe('buildDefaultSettings', () => {
|
||||||
name: 'field2Boolean',
|
name: 'field2Boolean',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'field3Text',
|
||||||
|
type: 'text',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'field4MatchOnlyText',
|
||||||
|
type: 'match_only_text',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'field5Wildcard',
|
||||||
|
type: 'wildcard',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -54,6 +66,9 @@ describe('buildDefaultSettings', () => {
|
||||||
"query": Object {
|
"query": Object {
|
||||||
"default_field": Array [
|
"default_field": Array [
|
||||||
"field1Keyword",
|
"field1Keyword",
|
||||||
|
"field3Text",
|
||||||
|
"field4MatchOnlyText",
|
||||||
|
"field5Wildcard",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { appContextService } from '../../../app_context';
|
import { appContextService } from '../../../app_context';
|
||||||
import type { Field, Fields } from '../../fields/field';
|
import type { Field, Fields } from '../../fields/field';
|
||||||
|
|
||||||
const QUERY_DEFAULT_FIELD_TYPES = ['keyword', 'text'];
|
const QUERY_DEFAULT_FIELD_TYPES = ['keyword', 'text', 'match_only_text', 'wildcard'];
|
||||||
const QUERY_DEFAULT_FIELD_LIMIT = 1024;
|
const QUERY_DEFAULT_FIELD_LIMIT = 1024;
|
||||||
|
|
||||||
const flattenFieldsToNameAndType = (
|
const flattenFieldsToNameAndType = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue