Skip to content

Commit 38558b3

Browse files
salvatore-campagnajfreden
authored andcommitted
Update synthetic source documentation (elastic#112363)
* docs: update synthetic source docs * fix: also doc values false works * Revert "fix: also doc values false works" This reverts commit 0895a76. * fix: update synthetic source documentation * fix: all field types support it * fix: no need to explicitly mention it * fix: synthetic source sorting * fix: may instead of might
1 parent 94bb205 commit 38558b3

20 files changed

+21
-64
lines changed

docs/plugins/mapper-annotated-text.asciidoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ be changed or removed in a future release. Elastic will work to fix
155155
any issues, but features in technical preview are not subject to the support SLA
156156
of official GA features.
157157

158-
`annotated_text` fields support {ref}/mapping-source-field.html#synthetic-source[synthetic `_source`] if they have
159-
a {ref}/keyword.html#keyword-synthetic-source[`keyword`] sub-field that supports synthetic
160-
`_source` or if the `annotated_text` field sets `store` to `true`. Either way, it may
161-
not have {ref}/copy-to.html[`copy_to`].
162-
163158
If using a sub-`keyword` field then the values are sorted in the same way as
164159
a `keyword` field's values are sorted. By default, that means sorted with
165160
duplicates removed. So:

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ since it relies on separate data structures to perform the search. Before
5959
using the <<include-exclude, `excludes`>> parameter, make sure to review the
6060
downsides of omitting fields from `_source`.
6161

62-
Another option is to use <<synthetic-source,synthetic `_source`>> if all
63-
your index fields support it.
62+
Another option is to use <<synthetic-source,synthetic `_source`>>.
6463

6564
[discrete]
6665
=== Ensure data nodes have enough memory

docs/reference/mapping/types/aggregate-metric-double.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ be changed or removed in a future release. Elastic will work to fix
259259
any issues, but features in technical preview are not subject to the support SLA
260260
of official GA features.
261261

262-
`aggregate_metric-double` fields support <<synthetic-source,synthetic `_source`>> in their default
263-
configuration.
264-
265262
For example:
266263
[source,console,id=synthetic-source-aggregate-metric-double-example]
267264
----

docs/reference/mapping/types/binary.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ be changed or removed in a future release. Elastic will work to fix
6363
any issues, but features in technical preview are not subject to the support SLA
6464
of official GA features.
6565

66-
`binary` fields support <<synthetic-source,synthetic `_source`>> only when <<doc-values,`doc_values`>> are enabled. Synthetic source always sorts `binary` values in order of their byte representation. For example:
66+
Synthetic source may sort `binary` values in order of their byte representation. For example:
6767
[source,console,id=synthetic-source-binary-example]
6868
----
6969
PUT idx

docs/reference/mapping/types/boolean.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ any issues, but features in technical preview are not subject to the support SLA
241241
of official GA features.
242242

243243
`boolean` fields support <<synthetic-source,synthetic `_source`>> in their
244-
default configuration. Synthetic `_source` cannot be used together with
245-
<<copy-to,`copy_to`>> or with <<doc-values,`doc_values`>> disabled.
244+
default configuration.
246245

247-
Synthetic source always sorts `boolean` fields. For example:
246+
Synthetic source may sort `boolean` field values. For example:
248247
[source,console,id=synthetic-source-boolean-example]
249248
----
250249
PUT idx

docs/reference/mapping/types/date.asciidoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,7 @@ be changed or removed in a future release. Elastic will work to fix
239239
any issues, but features in technical preview are not subject to the support SLA
240240
of official GA features.
241241

242-
`date` fields support <<synthetic-source,synthetic `_source`>> in their
243-
default configuration. Synthetic `_source` cannot be used together with
244-
<<copy-to,`copy_to`>> or with <<doc-values,`doc_values`>> disabled.
245-
246-
Synthetic source always sorts `date` fields. For example:
242+
Synthetic source may sort `date` field values. For example:
247243
[source,console,id=synthetic-source-date-example]
248244
----
249245
PUT idx

docs/reference/mapping/types/date_nanos.asciidoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,7 @@ be changed or removed in a future release. Elastic will work to fix
150150
any issues, but features in technical preview are not subject to the support SLA
151151
of official GA features.
152152

153-
`date_nanos` fields support <<synthetic-source,synthetic `_source`>> in their
154-
default configuration. Synthetic `_source` cannot be used together with
155-
<<copy-to,`copy_to`>>, <<ignore-malformed,`ignore_malformed`>> set to true
156-
or with <<doc-values,`doc_values`>> disabled.
157-
158-
Synthetic source always sorts `date_nanos` fields. For example:
153+
Synthetic source may sort `date_nanos` field values. For example:
159154
[source,console,id=synthetic-source-date-nanos-example]
160155
----
161156
PUT idx

docs/reference/mapping/types/flattened.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,9 @@ any issues, but features in technical preview are not subject to the support SLA
325325
of official GA features.
326326

327327
Flattened fields support <<synthetic-source,synthetic`_source`>> in their default
328-
configuration. Synthetic `_source` cannot be used with <<doc-values,`doc_values`>>
329-
disabled.
328+
configuration.
330329

331-
Synthetic source always sorts alphabetically and de-duplicates flattened fields.
330+
Synthetic source may sort `flattened` field values and remove duplicates.
332331
For example:
333332
[source,console,id=synthetic-source-flattened-sorting-example]
334333
----

docs/reference/mapping/types/geo-point.asciidoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,7 @@ be changed or removed in a future release. Elastic will work to fix
219219
any issues, but features in technical preview are not subject to the support SLA
220220
of official GA features.
221221

222-
`geo_point` fields support <<synthetic-source,synthetic `_source`>> in their
223-
default configuration. Synthetic `_source` cannot be used together with <<copy-to,`copy_to`>> or with
224-
<<doc-values,`doc_values`>> disabled.
225-
226-
Synthetic source always sorts `geo_point` fields (first by latitude and then
222+
Synthetic source may sort `geo_point` fields (first by latitude and then
227223
longitude) and reduces them to their stored precision. For example:
228224
[source,console,id=synthetic-source-geo-point-example]
229225
----

docs/reference/mapping/types/geo-shape.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,3 @@ synthetic `_source` is in technical preview. Features in technical preview may
502502
be changed or removed in a future release. Elastic will work to fix
503503
any issues, but features in technical preview are not subject to the support SLA
504504
of official GA features.
505-
506-
`geo_shape` fields support <<synthetic-source,synthetic `_source`>> in their
507-
default configuration.

0 commit comments

Comments
 (0)