mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Search] Update the shard failure testing instructions in search_source.ts
(#165281)
## Summary While working with @1Copenut on troubleshooting an EUI upgrade issue, we ran into some problems following these instructions, so I've updated them to include the full steps needed to test shared failures. --------- Co-authored-by: Matthias Wilhelm <ankertal@gmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
26afc4d196
commit
f721e3a82e
1 changed files with 8 additions and 3 deletions
|
@ -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: [
|
||||
// {
|
||||
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue