[DOCS] Reduce content reuse in enrich docs (#53460)

Restructures the 'Update an enrich policy' section to:

* Migrate the content to the section. It was previously stored in the
  Put Enrich Policy API docs.
* Remove the warning tag admonition from the section content.
* Replace a reused section earlier in the "Set up an enrich processor"
  page with a link.

No substantive changes were made to the content.
This commit is contained in:
James Rodewig 2020-03-12 05:57:23 -04:00 committed by GitHub
parent 2438b899eb
commit af987fb2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 15 deletions

View File

@ -67,22 +67,11 @@ If you use {es} {security-features}, you must have:
Use the put enrich policy API Use the put enrich policy API
to create a new <<enrich-policy,enrich policy>>. to create a new <<enrich-policy,enrich policy>>.
// tag::update-enrich-policy[]
[WARNING] [WARNING]
==== ====
Once created, you can't update or change an enrich policy. include::../../enrich.asciidoc[tag=update-enrich-policy]
Instead, you can:
. Create and <<execute-enrich-policy-api,execute>> a new enrich policy.
. Replace the previous enrich policy
with the new enrich policy
in any in-use enrich processors.
. Use the <<delete-enrich-policy-api, delete enrich policy>> API
to delete the previous enrich policy.
==== ====
// end::update-enrich-policy[]
[[put-enrich-policy-api-path-params]] [[put-enrich-policy-api-path-params]]

View File

@ -150,7 +150,11 @@ include::enrich.asciidoc[tag=enrich-policy-fields]
You can use this definition to create the enrich policy with the You can use this definition to create the enrich policy with the
<<put-enrich-policy-api,put enrich policy API>>. <<put-enrich-policy-api,put enrich policy API>>.
include::apis/enrich/put-enrich-policy.asciidoc[tag=update-enrich-policy] [WARNING]
====
Once created, you can't update or change an enrich policy.
See <<update-enrich-policies>>.
====
[[execute-enrich-policy]] [[execute-enrich-policy]]
==== Execute the enrich policy ==== Execute the enrich policy
@ -214,7 +218,19 @@ using your ingest pipeline.
[[update-enrich-policies]] [[update-enrich-policies]]
==== Update an enrich policy ==== Update an enrich policy
include::apis/enrich/put-enrich-policy.asciidoc[tag=update-enrich-policy] // tag::update-enrich-policy[]
Once created, you can't update or change an enrich policy.
Instead, you can:
. Create and <<execute-enrich-policy-api,execute>> a new enrich policy.
. Replace the previous enrich policy
with the new enrich policy
in any in-use enrich processors.
. Use the <<delete-enrich-policy-api, delete enrich policy>> API
to delete the previous enrich policy.
// end::update-enrich-policy[]
[role="xpack"] [role="xpack"]
[testenv="basic"] [testenv="basic"]