From 56b54c90e9f72b6ab90c22eb1d847e8f31f8e6c6 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Wed, 13 Jan 2021 11:20:47 +0000 Subject: [PATCH 1/2] Add breaking changes for #64597 and #63945 --- .../reference/migration/migrate_7_11.asciidoc | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/reference/migration/migrate_7_11.asciidoc b/docs/reference/migration/migrate_7_11.asciidoc index 0b9f7ab8337c4..f16c9e8dbcffc 100644 --- a/docs/reference/migration/migrate_7_11.asciidoc +++ b/docs/reference/migration/migrate_7_11.asciidoc @@ -33,6 +33,31 @@ field configured with a lowercase normalizer will return highlighted snippets in lower case. ==== +[[text-subfields]] +.Internal fields used for text search acceleration are hidden +[%collapsible] +==== +*Details* + +Text fields can add internal subfields using extra analysis to speed +up prefix and phrase searches. Previously these were exposed to +the field caps API and were available for searching directly. However, +they did not implement all query types and could return bad results +or throw errors if used via the query DSL. These subfields are now +internal only and cannot be invoked as searchable fields in queries. +==== + +[[significant-text-non-text-fields]] +.The significant text aggregation now throws an error if applied to a numeric field +[%collapsible] +==== +*Details* + +The significant text aggregation could previously be applied to a fields that +were defined as numeric, which made little sense and would always return an +empty result. Given that applying a text-specific aggregation to a non-text +field is almost certainly a mistake, this has now been changed to throw an +error. +==== + [discrete] [[breaking_711_transform_changes]] === Transform changes From bb122b4986e311d4306f6ca9274e615ba2066895 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Wed, 13 Jan 2021 14:08:16 +0000 Subject: [PATCH 2/2] Die double spaces, die! Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> --- docs/reference/migration/migrate_7_11.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/migration/migrate_7_11.asciidoc b/docs/reference/migration/migrate_7_11.asciidoc index f16c9e8dbcffc..69aa5d5076f1e 100644 --- a/docs/reference/migration/migrate_7_11.asciidoc +++ b/docs/reference/migration/migrate_7_11.asciidoc @@ -39,8 +39,8 @@ snippets in lower case. ==== *Details* + Text fields can add internal subfields using extra analysis to speed -up prefix and phrase searches. Previously these were exposed to -the field caps API and were available for searching directly. However, +up prefix and phrase searches. Previously these were exposed to +the field caps API and were available for searching directly. However, they did not implement all query types and could return bad results or throw errors if used via the query DSL. These subfields are now internal only and cannot be invoked as searchable fields in queries.