Browse Source

[DOCS] Move tip for percolate query example (#83972)

Moves a tip for the percolate query to the beginning of the example.
James Rodewig 3 years ago
parent
commit
c1aba1e109
1 changed files with 7 additions and 5 deletions
  1. 7 5
      docs/reference/query-dsl/percolate-query.asciidoc

+ 7 - 5
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 <<how-it-works>>.
 
 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 <<how-it-works, How it Works Under the Hood>> for more details.
-
 [discrete]
 ==== Parameters