Skip to content

Commit

Permalink
updated and synced test and prod resource mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNorland committed Nov 14, 2023
1 parent 4bcdc4d commit 43747fb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
36 changes: 22 additions & 14 deletions indexing-handlers/src/main/resources/resources_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"type": "keyword"
},
"labels": {
"include_in_parent": true,
"type": "nested"
}
}
Expand All @@ -29,10 +30,9 @@
},
"name": {
"type": "text",
"include_in_parent": true,
"fields" : {
"keyword" : {
"type" : "keyword"
"fields": {
"keyword": {
"type": "keyword"
}
}
}
Expand All @@ -42,12 +42,18 @@
"type": "nested",
"include_in_parent": true,
"properties": {
"id": {
"type": "keyword"
},
"labels": {
"include_in_parent": true,
"type": "nested"
"type": "nested",
"include_in_parent": true
},
"id": {
"type": "text",
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
}
}
}
}
Expand Down Expand Up @@ -101,10 +107,10 @@
}
},
"fundings": {
"type": "nested",
"include_in_parent": true,
"properties": {
"id": {
"include_in_parent": true,
"type": "text",
"fields": {
"keyword": {
Expand All @@ -113,16 +119,18 @@
}
}
},
"identifier": {
"type": "keyword"
},
"source": {
"type": "nested",
"include_in_parent": true,
"properties": {
"identifier": {
"include_in_parent": true,
"type": "keyword"
},
"id": {
"type": "text",
"include_in_parent": true,
"fields": {
"keyword": {
"ignore_above": 256,
Expand All @@ -131,8 +139,8 @@
}
},
"labels": {
"include_in_parent": true,
"type": "text"
"type": "nested",
"include_in_parent": true
}
}
}
Expand Down
20 changes: 16 additions & 4 deletions search-commons/src/test/resources/test_resources_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@
"type": "nested",
"include_in_parent": true,
"properties": {
"id": {
"type": "keyword"
},
"identifier": {
"type": "keyword"
},
Expand Down Expand Up @@ -111,7 +108,13 @@
"include_in_parent": true,
"properties": {
"id": {
"type": "keyword"
"type": "text",
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
}
},
"identifier": {
"type": "keyword"
Expand All @@ -123,6 +126,15 @@
"identifier": {
"type": "keyword"
},
"id": {
"type": "text",
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
}
},
"labels": {
"type": "nested",
"include_in_parent": true
Expand Down

0 comments on commit 43747fb

Please sign in to comment.