From 3912761572f42765365851541cb1f9a9c3eabd55 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 5 May 2016 15:59:21 -0400 Subject: [PATCH] [docs] Add wait_until_yellow to fix build failure The snippet in the docs creates and index and uses it with the _analyze api. The trouble is that if the index hasn't been created fully the _analyze API will fail. This adds a GET _cluster/health?wait_for_status=yellow which fixes the issue. While this does make the docs more cluttered, it also makes the snippets actually runnable. Closes #18165 --- docs/reference/analysis/analyzers/pattern-analyzer.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/analysis/analyzers/pattern-analyzer.asciidoc b/docs/reference/analysis/analyzers/pattern-analyzer.asciidoc index b012d3a9673..2aaa0d6bb16 100644 --- a/docs/reference/analysis/analyzers/pattern-analyzer.asciidoc +++ b/docs/reference/analysis/analyzers/pattern-analyzer.asciidoc @@ -103,6 +103,8 @@ PUT test?pretty=1 } } +GET _cluster/health?wait_for_status=yellow + GET test/_analyze?analyzer=camel&text=MooseX::FTPClass2_beta # "moose","x","ftp","class","2","beta" --------------------------------------------------