Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Source-code: src/plugins/data/common/data_views/fields/data_view_field.test.ts
Describe the issue:
We automate all of out config with ansible, for both OpenSearch and Dashboards and it works fine, but there are aspects that we don’t fully understand.
We use the save-object api described here:
- How to create index pattern through Dashboards API - OpenSearch Dashboards - OpenSearch
- Create saved objects API | Kibana Guide [7.10] | Elastic
Questions:
- Where can we find documentation for what these variables really mean and do?
- Are they still relevant for OpenSearch/Dashboards or are they depricated?
const fieldValues = {
name: 'name',
type: 'string',
script: 'script',
lang: 'lang',
count: 1,
esTypes: ['text'],
aggregatable: true,
filterable: true,
searchable: true,
sortable: true,
indexed: true,
readFromDocValues: false,
visualizable: true,
scripted: true,
subType: { multi: { parent: 'parent' }, nested: { path: 'path' } },
displayName: 'displayName',
indexPattern: ({
fieldFormatMap: { name: {}, _source: {}, _score: {}, _id: {} },
} as unknown) as DataView,
$$spec: ({} as unknown) as DataViewFieldSpec,
conflictDescriptions: { a: ['b', 'c'], d: ['e'] },
};