Skip to content

Commit

Permalink
Merge branch 'test-8.0-fixes' into no-include_type_name
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Jan 14, 2022
2 parents bac827e + 5f16a8a commit c4ffe3a
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 15 deletions.
4 changes: 3 additions & 1 deletion packages/kbn-es-archiver/src/actions/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ export async function loadAction({
progress.deactivate();
const result = stats.toJSON();

const indicesWithDocs: string[] = [];
for (const [index, { docs }] of Object.entries(result)) {
if (docs && docs.indexed > 0) {
log.info('[%s] Indexed %d docs into %j', name, docs.indexed, index);
indicesWithDocs.push(index);
}
}

await client.indices.refresh(
{
index: '_all',
index: indicesWithDocs.join(','),
allow_no_indices: true,
},
{
Expand Down
1 change: 0 additions & 1 deletion packages/kbn-es-archiver/src/lib/indices/kibana_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export async function createDefaultSpace({
await client.create(
{
index,
type: '_doc',
id: 'space:default',
refresh: 'wait_for',
body: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
"map": {
"properties": {
"bounds": {
"type": "geo_shape",
"tree": "quadtree"
"type": "geo_shape"
},
"description": {
"type": "text"
Expand Down Expand Up @@ -418,4 +417,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@
"map": {
"properties": {
"bounds": {
"type": "geo_shape",
"tree": "quadtree"
"type": "geo_shape"
},
"description": {
"type": "text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@
"map": {
"properties": {
"bounds": {
"type": "geo_shape",
"tree": "quadtree"
"type": "geo_shape"
},
"description": {
"type": "text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@
"gis-map": {
"properties": {
"bounds": {
"strategy": "recursive",
"type": "geo_shape"
},
"description": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@
"gis-map": {
"properties": {
"bounds": {
"strategy": "recursive",
"type": "geo_shape"
},
"description": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@
"gis-map": {
"properties": {
"bounds": {
"strategy": "recursive",
"type": "geo_shape"
},
"description": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"map": {
"properties": {
"bounds": {
"tree": "quadtree",
"type": "geo_shape"
},
"description": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
"map": {
"properties": {
"bounds": {
"type": "geo_shape",
"tree": "quadtree"
"type": "geo_shape"
},
"description": {
"type": "text"
Expand Down

0 comments on commit c4ffe3a

Please sign in to comment.