adding schema for all current query_string settings (#93175)

This commit is contained in:
Peter Pisljar 2021-03-03 15:08:38 +01:00 committed by GitHub
parent e2fb4760a1
commit ab6a688505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,27 @@ export function getUiSettings(): Record<string, UiSettingsParams<unknown>> {
}),
type: 'json',
schema: schema.object({
default_field: schema.nullable(schema.string()),
allow_leading_wildcard: schema.nullable(schema.boolean()),
analyze_wildcard: schema.boolean(),
analyzer: schema.nullable(schema.string()),
auto_generate_synonyms_phrase_query: schema.nullable(schema.boolean()),
boost: schema.nullable(schema.number()),
default_operator: schema.nullable(schema.string()),
enable_position_increments: schema.nullable(schema.boolean()),
fields: schema.nullable(schema.arrayOf<string>(schema.string())),
fuzziness: schema.nullable(schema.string()),
fuzzy_max_expansions: schema.nullable(schema.number()),
fuzzy_prefix_length: schema.nullable(schema.number()),
fuzzy_transpositions: schema.nullable(schema.boolean()),
lenient: schema.nullable(schema.boolean()),
max_determinized_states: schema.nullable(schema.number()),
minimum_should_match: schema.nullable(schema.string()),
quote_analyzer: schema.nullable(schema.string()),
phrase_slop: schema.nullable(schema.number()),
quote_field_suffix: schema.nullable(schema.string()),
rewrite: schema.nullable(schema.string()),
time_zone: schema.nullable(schema.string()),
}),
},
[UI_SETTINGS.QUERY_ALLOW_LEADING_WILDCARDS]: {