Browse Source

[DOCS] Update term vectors snippet to prevent CI failure (#52819)

Adds the `?refresh=wait_for` query argument to an index API snippet in
the term vectors API docs.

This should ensure the document is indexed and available before a
subsequent term vectors API request executes.

Fixes #52814.
James Rodewig 5 years ago
parent
commit
fb64c18ac6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/reference/docs/termvectors.asciidoc

+ 1 - 1
docs/reference/docs/termvectors.asciidoc

@@ -216,7 +216,7 @@ PUT /twitter/_doc/1
   "text" : "twitter test test test "
 }
 
-PUT /twitter/_doc/2
+PUT /twitter/_doc/2?refresh=wait_for
 {
   "fullname" : "Jane Doe",
   "text" : "Another twitter test ..."