Skip to content

Commit

Permalink
Comments out unindexed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Mar 10, 2023
1 parent 6f99367 commit 536f3ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/plugins/data/server/saved_objects/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const querySavedObjectType: SavedObjectsType = {
title: { type: 'text' },
description: { type: 'text' },
query: {
dynamic: false,
properties: { language: { type: 'keyword' }, query: { type: 'keyword', index: false } }, // cannot remove, query.query is used in the UI & for validation on create
properties: { language: { type: 'keyword' }, query: { type: 'keyword', index: false } },
},
filters: {
dynamic: false,
Expand Down
17 changes: 10 additions & 7 deletions src/plugins/saved_search/server/saved_objects/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function getSavedSearchObjectType(
},
},
mappings: {
dynamic: false,
properties: {
columns: { type: 'keyword', index: false, doc_values: false },
description: { type: 'text' },
Expand All @@ -43,31 +44,33 @@ export function getSavedSearchObjectType(
hideAggregatedPreview: { type: 'boolean', index: false, doc_values: false },
hits: { type: 'integer', index: false, doc_values: false },
kibanaSavedObjectMeta: {
dynamic: false,
properties: {
// may need code changes
searchSourceJSON: { type: 'text', index: false },
},
},
sort: { type: 'keyword', index: false, doc_values: false },
// sort: { type: 'keyword', index: false, doc_values: false },
title: { type: 'text' },
grid: { dynamic: false, properties: {} },
version: { type: 'integer' },
rowHeight: { type: 'text' },
timeRestore: { type: 'boolean', index: false, doc_values: false },
// timeRestore: { type: 'boolean', index: false, doc_values: false },
timeRange: {
dynamic: false,
properties: {
from: { type: 'keyword', index: false, doc_values: false },
to: { type: 'keyword', index: false, doc_values: false },
// from: { type: 'keyword', index: false, doc_values: false },
// to: { type: 'keyword', index: false, doc_values: false },
},
},
refreshInterval: {
dynamic: false,
properties: {
pause: { type: 'boolean', index: false, doc_values: false },
value: { type: 'integer', index: false, doc_values: false },
// pause: { type: 'boolean', index: false, doc_values: false },
// value: { type: 'integer', index: false, doc_values: false },
},
},
rowsPerPage: { type: 'integer', index: false, doc_values: false },
// rowsPerPage: { type: 'integer', index: false, doc_values: false },
breakdownField: { type: 'text' },
},
},
Expand Down

0 comments on commit 536f3ba

Please sign in to comment.