Skip to content

Commit

Permalink
Fix mappings for Upgrade Assistant reindexOperationSavedObjectType. (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Jul 14, 2020
1 parent 724598c commit 9896a8a
Showing 1 changed file with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,25 @@ export const reindexOperationSavedObjectType: SavedObjectsType = {
mappings: {
properties: {
reindexTaskId: {
type: 'keyword',
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256,
},
},
},
indexName: {
type: 'keyword',
},
newIndexName: {
type: 'keyword',
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256,
},
},
},
status: {
type: 'integer',
Expand All @@ -30,10 +42,19 @@ export const reindexOperationSavedObjectType: SavedObjectsType = {
type: 'date',
},
lastCompletedStep: {
type: 'integer',
type: 'long',
},
// Note that reindex failures can result in extremely long error messages coming from ES.
// We need to map these errors as text and use ignore_above to prevent indexing really large
// messages as keyword. See https://github.com/elastic/kibana/issues/71642 for more info.
errorMessage: {
type: 'keyword',
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256,
},
},
},
reindexTaskPercComplete: {
type: 'float',
Expand Down

0 comments on commit 9896a8a

Please sign in to comment.