Skip to content

Commit

Permalink
use ecs convention for multi fields
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-weisman committed May 15, 2022
1 parent b255512 commit 6b2d34f
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export const latestFindingsMapping: MappingTypeMapping = {
result: {
properties: {
evaluation: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
Expand All @@ -24,11 +24,11 @@ export const latestFindingsMapping: MappingTypeMapping = {
agent: {
properties: {
id: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
Expand All @@ -38,49 +38,49 @@ export const latestFindingsMapping: MappingTypeMapping = {
type: 'date',
},
cycle_id: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
resource: {
properties: {
type: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 256,
type: 'keyword',
type: 'text',
},
},
},
id: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 256,
type: 'keyword',
type: 'text',
},
},
},
name: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
sub_type: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
Expand All @@ -92,11 +92,11 @@ export const latestFindingsMapping: MappingTypeMapping = {
},
resource_id: {
// deprecated - the new field is resource.id
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
Expand All @@ -115,33 +115,33 @@ export const latestFindingsMapping: MappingTypeMapping = {
benchmark: {
properties: {
name: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
},
},
section: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
},
},
cluster_id: {
type: 'text',
type: 'keyword',
fields: {
keyword: {
ignore_above: 1024,
type: 'keyword',
type: 'text',
},
},
},
Expand Down

0 comments on commit 6b2d34f

Please sign in to comment.