Skip to content

Commit

Permalink
Merge branch 'main' into ml-transform-fix-transform-list-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Sep 1, 2023
2 parents 2091a57 + f721e3a commit d10bdb9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/plugins/data/common/search/search_source/search_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,12 @@ export class SearchSource {
};
body.query = buildEsQuery(index, query, filters, esQueryConfigs);

// For testing shard failure messages in UI, uncomment the next block and switch to `kibana*` data view
// body.query = {
// For testing shard failure messages in the UI, follow these steps:
// 1. Add all three sample data sets (flights, ecommerce, logs) to Kibana.
// 2. Create a data view using the index pattern `kibana*` and don't use a timestamp field.
// 3. Uncomment the lines below, navigate to Discover,
// and switch to the data view created in step 2.
// body.query.bool.must.push({
// error_query: {
// indices: [
// {
Expand All @@ -930,7 +934,8 @@ export class SearchSource {
// },
// ],
// },
// };
// });
// Alternatively you could also add this query via "Edit as Query DSL", then it needs no code to be changed

if (highlightAll && body.query) {
body.highlight = getHighlightRequest(getConfig(UI_SETTINGS.DOC_HIGHLIGHT));
Expand Down

0 comments on commit d10bdb9

Please sign in to comment.