[ML] Add optional source filtering during data frame reindexing (#49690)

This adds a `_source` setting under the `source` setting of a data
frame analytics config. The new `_source` is reusing the structure
of a `FetchSourceContext` like `analyzed_fields` does. Specifying
includes and excludes for source allows selecting which fields
will get reindexed and will be available in the destination index.

Closes #49531
This commit is contained in:
Dimitris Athanasiou 2019-11-29 14:20:31 +02:00 committed by GitHub
parent f8e39d2ff1
commit bad07b76f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 521 additions and 127 deletions

View file

@ -52,6 +52,7 @@ include-tagged::{doc-tests-file}[{api}-source-config]
<1> Constructing a new DataFrameAnalyticsSource
<2> The source index
<3> The query from which to gather the data. If query is not set, a `match_all` query is used by default.
<4> Source filtering to select which fields will exist in the destination index.
===== QueryConfig