Skip to content

Commit

Permalink
adding schema for all current query_string settings (#93175) (#93429)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Mar 3, 2021
1 parent b522ac1 commit 8ace353
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/plugins/data/server/ui_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]: {
Expand Down

0 comments on commit 8ace353

Please sign in to comment.