Skip to content

Commit c1aba1e

Browse files
authored
[DOCS] Move tip for percolate query example (#83972)
Moves a tip for the percolate query to the beginning of the example.
1 parent d6aba55 commit c1aba1e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/reference/query-dsl/percolate-query.asciidoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ contains the document that will be used as query
1010
to match with the stored queries.
1111

1212
[discrete]
13-
=== Sample Usage
13+
=== Sample usage
14+
15+
TIP: To provide a simple example, this documentation uses one index,
16+
`my-index-000001`, for both the percolate queries and documents. This setup can
17+
work well when there are just a few percolate queries registered. For heavier
18+
usage, we recommend you store queries and documents in separate indices. For
19+
more details, refer to <<how-it-works>>.
1420

1521
Create an index with two fields:
1622

@@ -118,10 +124,6 @@ The above request will yield the following response:
118124
<2> The `_percolator_document_slot` field indicates which document has matched with this query.
119125
Useful when percolating multiple document simultaneously.
120126

121-
TIP: To provide a simple example, this documentation uses one index `my-index-000001` for both the percolate queries and documents.
122-
This set-up can work well when there are just a few percolate queries registered. However, with heavier usage it is recommended
123-
to store queries and documents in separate indices. Please see <<how-it-works, How it Works Under the Hood>> for more details.
124-
125127
[discrete]
126128
==== Parameters
127129

0 commit comments

Comments
 (0)