Browse Source

[DOCS] Correct `query` datatype in enrich policy definition (#56224)

Corrects the datatype for the `query` property of an enrich policy
object. The `query` property is a query object, not a string.
James Rodewig 5 years ago
parent
commit
2f930f1ec0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      docs/reference/ingest/enrich.asciidoc

+ 4 - 4
docs/reference/ingest/enrich.asciidoc

@@ -247,7 +247,7 @@ following:
         "indices": ["..."],
         "match_field": "...",
         "enrich_fields": ["..."],
-        "query": "..."
+        "query": {...}
     }
   }
 }
@@ -297,9 +297,9 @@ Fields to add to matching incoming documents. These fields must be present in
 the source indices.
 
 `query`::
-(Optional, string)
-Query type used to filter documents in the enrich index for matching. Valid
-value is <<query-dsl-match-all-query,`match_all`>> (default).
+(Optional, <<query-dsl,Query DSL query object>>)
+Query used to filter documents in the enrich index for matching. Defaults to
+a <<query-dsl-match-all-query,`match_all`>> query.
 
 [role="xpack"]
 [testenv="basic"]