Skip to content

Commit

Permalink
Docs: Call out that you can't update analyzer (backport of #69889) (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
nik9000 authored Mar 3, 2021
1 parent 3e914a3 commit f9844be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/mapping/params/analyzer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f9844be

Please sign in to comment.