From c1aba1e109aecf376b44155b43dbc7f76cd540ec Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Tue, 15 Feb 2022 15:24:33 -0500 Subject: [PATCH] [DOCS] Move tip for percolate query example (#83972) Moves a tip for the percolate query to the beginning of the example. --- docs/reference/query-dsl/percolate-query.asciidoc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/reference/query-dsl/percolate-query.asciidoc b/docs/reference/query-dsl/percolate-query.asciidoc index 684b0b571f149..55f1fd5c705f9 100644 --- a/docs/reference/query-dsl/percolate-query.asciidoc +++ b/docs/reference/query-dsl/percolate-query.asciidoc @@ -10,7 +10,13 @@ contains the document that will be used as query to match with the stored queries. [discrete] -=== Sample Usage +=== Sample usage + +TIP: To provide a simple example, this documentation uses one index, +`my-index-000001`, for both the percolate queries and documents. This setup can +work well when there are just a few percolate queries registered. For heavier +usage, we recommend you store queries and documents in separate indices. For +more details, refer to <>. Create an index with two fields: @@ -118,10 +124,6 @@ The above request will yield the following response: <2> The `_percolator_document_slot` field indicates which document has matched with this query. Useful when percolating multiple document simultaneously. -TIP: To provide a simple example, this documentation uses one index `my-index-000001` for both the percolate queries and documents. -This set-up can work well when there are just a few percolate queries registered. However, with heavier usage it is recommended -to store queries and documents in separate indices. Please see <> for more details. - [discrete] ==== Parameters