Skip to content

Commit bb5a4b3

Browse files
authored
[DOCS] Cross-link copy_to and search speed docs (#60926)
1 parent d1bba8c commit bb5a4b3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/reference/how-to/search-speed.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ queries hundreds of times slower. So if the same questions can be answered witho
3636
joins by denormalizing documents, significant speedups can be expected.
3737

3838
[discrete]
39+
[[search-as-few-fields-as-possible]]
3940
=== Search as few fields as possible
4041

4142
The more fields a <<query-dsl-query-string-query,`query_string`>> or

docs/reference/mapping/params/copy-to.asciidoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33

44
The `copy_to` parameter allows you to copy the values of multiple
55
fields into a group field, which can then be queried as a single
6-
field. For instance, the `first_name` and `last_name` fields can be copied to
6+
field.
7+
8+
TIP: If you often search multiple fields, you can improve search speeds by using
9+
`copy_to` to search fewer fields. See <<search-as-few-fields-as-possible>>.
10+
11+
For example, the `first_name` and `last_name` fields can be copied to
712
the `full_name` field as follows:
813

914
[source,console]

0 commit comments

Comments
 (0)