parent
b216340f50
commit
1b2a015734
|
@ -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 <<query-dsl-query-string-query,`query_string`>> or
|
||||
|
|
|
@ -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 <<search-as-few-fields-as-possible>>.
|
||||
|
||||
For example, the `first_name` and `last_name` fields can be copied to
|
||||
the `full_name` field as follows:
|
||||
|
||||
[source,console]
|
||||
|
|
Loading…
Reference in New Issue