[8.16] Add autocomplete support for all field types (#216765) (#216904)

# Backport

This will backport the following commits from `main` to `8.16`:
- [Add autocomplete support for all field types
(#216765)](https://github.com/elastic/kibana/pull/216765)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ioana
Tagirta","email":"ioanatia@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-02T17:56:01Z","message":"Add
autocomplete support for all field types
(#216765)","sha":"00e776f1666a335c559c39fe98c22af98a672b5f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"Add
autocomplete support for all field
types","number":216765,"url":"https://github.com/elastic/kibana/pull/216765","mergeCommit":{"message":"Add
autocomplete support for all field types
(#216765)","sha":"00e776f1666a335c559c39fe98c22af98a672b5f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216765","number":216765,"mergeCommit":{"message":"Add
autocomplete support for all field types
(#216765)","sha":"00e776f1666a335c559c39fe98c22af98a672b5f"}}]}]
BACKPORT-->

Co-authored-by: Ioana Tagirta <ioanatia@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-04-02 21:55:06 +02:00 committed by GitHub
parent 0e2eba8b74
commit 1233ff8274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,24 +47,39 @@ export const mappings = (specService: SpecDefinitionsService) => {
'*': {
type: {
__one_of: [
'text',
'keyword',
'float',
'half_float',
'scaled_float',
'double',
'byte',
'short',
'integer',
'long',
'date',
'boolean',
'alias',
'binary',
'object',
'nested',
'boolean',
'completion',
'constant_keyword',
'date',
'date_nanos',
'dense_vector',
'flattened',
'geo_point',
'geo_shape',
'dense_vector',
'histogram',
'ip',
'join',
'keyword',
'match_only_text',
'nested',
'numeric',
'object',
'passthrough',
'percolator',
'point',
'range',
'rank_feature',
'rank_features',
'search_as_you_type',
'semantic_text',
'shape',
'sparse_vector',
'text',
'token_count',
'version',
'wildcard',
],
},