diff --git a/docs/reference/how-to/search-speed.asciidoc b/docs/reference/how-to/search-speed.asciidoc index c6a27b0c86a..8b5f1ee1633 100644 --- a/docs/reference/how-to/search-speed.asciidoc +++ b/docs/reference/how-to/search-speed.asciidoc @@ -36,6 +36,7 @@ queries hundreds of times slower. So if the same questions can be answered witho joins by denormalizing documents, significant speedups can be expected. [discrete] +[[search-as-few-fields-as-possible]] === Search as few fields as possible The more fields a <> or diff --git a/docs/reference/mapping/params/copy-to.asciidoc b/docs/reference/mapping/params/copy-to.asciidoc index 69b04839333..cc5c811ccf3 100644 --- a/docs/reference/mapping/params/copy-to.asciidoc +++ b/docs/reference/mapping/params/copy-to.asciidoc @@ -3,7 +3,12 @@ The `copy_to` parameter allows you to copy the values of multiple fields into a group field, which can then be queried as a single -field. For instance, the `first_name` and `last_name` fields can be copied to +field. + +TIP: If you often search multiple fields, you can improve search speeds by using +`copy_to` to search fewer fields. See <>. + +For example, the `first_name` and `last_name` fields can be copied to the `full_name` field as follows: [source,console]