From af987fb2d40a3ea24efee330c7a867ddfa858bae Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Thu, 12 Mar 2020 05:57:23 -0400 Subject: [PATCH] [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. --- .../apis/enrich/put-enrich-policy.asciidoc | 15 ++------------ docs/reference/ingest/enrich.asciidoc | 20 +++++++++++++++++-- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/docs/reference/ingest/apis/enrich/put-enrich-policy.asciidoc b/docs/reference/ingest/apis/enrich/put-enrich-policy.asciidoc index 98108916233..0db8afd3e4f 100644 --- a/docs/reference/ingest/apis/enrich/put-enrich-policy.asciidoc +++ b/docs/reference/ingest/apis/enrich/put-enrich-policy.asciidoc @@ -67,22 +67,11 @@ If you use {es} {security-features}, you must have: Use the put enrich policy API to create a new <>. -// tag::update-enrich-policy[] [WARNING] ==== -Once created, you can't update or change an enrich policy. -Instead, you can: - -. Create and <> a new enrich policy. - -. Replace the previous enrich policy - with the new enrich policy - in any in-use enrich processors. - -. Use the <> API - to delete the previous enrich policy. +include::../../enrich.asciidoc[tag=update-enrich-policy] ==== -// end::update-enrich-policy[] + [[put-enrich-policy-api-path-params]] diff --git a/docs/reference/ingest/enrich.asciidoc b/docs/reference/ingest/enrich.asciidoc index b28d1973951..f589ad47ebf 100644 --- a/docs/reference/ingest/enrich.asciidoc +++ b/docs/reference/ingest/enrich.asciidoc @@ -150,7 +150,11 @@ include::enrich.asciidoc[tag=enrich-policy-fields] You can use this definition to create the enrich policy with the <>. -include::apis/enrich/put-enrich-policy.asciidoc[tag=update-enrich-policy] +[WARNING] +==== +Once created, you can't update or change an enrich policy. +See <>. +==== [[execute-enrich-policy]] ==== Execute the enrich policy @@ -214,7 +218,19 @@ using your ingest pipeline. [[update-enrich-policies]] ==== 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 <> a new enrich policy. + +. Replace the previous enrich policy + with the new enrich policy + in any in-use enrich processors. + +. Use the <> API + to delete the previous enrich policy. +// end::update-enrich-policy[] [role="xpack"] [testenv="basic"]