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