File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ queries hundreds of times slower. So if the same questions can be answered witho
36
36
joins by denormalizing documents, significant speedups can be expected.
37
37
38
38
[discrete]
39
+ [[search-as-few-fields-as-possible]]
39
40
=== Search as few fields as possible
40
41
41
42
The more fields a <<query-dsl-query-string-query,`query_string`>> or
Original file line number Diff line number Diff line change 3
3
4
4
The `copy_to` parameter allows you to copy the values of multiple
5
5
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
7
12
the `full_name` field as follows:
8
13
9
14
[source,console]
You can’t perform that action at this time.
0 commit comments