Docs: Call out that you can't update analyzer (#69889)

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.
This commit is contained in:
Nik Everett 2021-03-03 10:28:55 -05:00 committed by GitHub
parent 69020a68ef
commit fe457f156d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,9 @@ We recommend testing analyzers before using them in production. See
<<test-analyzer>>.
====
TIP: The `analyzer` setting can *not* be updated on existing fields
using the <<indices-put-mapping,PUT mapping API>>.
[[search-quote-analyzer]]
==== `search_quote_analyzer`
@ -94,6 +97,9 @@ GET my-index-000001/_search
}
--------------------------------------------------
TIP: The `search_quote_analyzer` setting can be updated on existing fields
using the <<indices-put-mapping,PUT mapping API>>.
<1> `my_analyzer` analyzer which tokens all terms including stop words
<2> `my_stop_analyzer` analyzer which removes stop words
<3> `analyzer` setting that points to the `my_analyzer` analyzer which will be used at index time