[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
This commit is contained in:
Nik Everett 2016-05-05 15:59:21 -04:00
parent 4b1c116461
commit 3912761572
1 changed files with 2 additions and 0 deletions

View File

@ -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"
--------------------------------------------------