Skip to content

Commit f9844be

Browse files
authored
Docs: Call out that you can't update analyzer (backport of #69889) (#69893)
You can't update the `analyzer` parameter in the PUT mappings API even if the index is closed. This adds a TIP to call that out. And adds a TIP for `search_quote_analyzer` which you *can* update.
1 parent 3e914a3 commit f9844be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/reference/mapping/params/analyzer.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ We recommend testing analyzers before using them in production. See
1919
<<test-analyzer>>.
2020
====
2121

22+
TIP: The `analyzer` setting can *not* be updated on existing fields
23+
using the <<indices-put-mapping,PUT mapping API>>.
24+
2225
[[search-quote-analyzer]]
2326
==== `search_quote_analyzer`
2427

@@ -94,6 +97,9 @@ GET my-index-000001/_search
9497
}
9598
--------------------------------------------------
9699

100+
TIP: The `search_quote_analyzer` setting can be updated on existing fields
101+
using the <<indices-put-mapping,PUT mapping API>>.
102+
97103
<1> `my_analyzer` analyzer which tokens all terms including stop words
98104
<2> `my_stop_analyzer` analyzer which removes stop words
99105
<3> `analyzer` setting that points to the `my_analyzer` analyzer which will be used at index time

0 commit comments

Comments
 (0)