From 3f489a51fa372cd9472e8b8ad1a2800f0bb87508 Mon Sep 17 00:00:00 2001 From: Sue-Gallagher Date: Wed, 6 Jun 2018 14:34:11 -0700 Subject: [PATCH 1/4] [DOCS] Added 'fail_on_unsupported_field' param to MLT. Closes 28008 --- docs/reference/query-dsl/mlt-query.asciidoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/reference/query-dsl/mlt-query.asciidoc b/docs/reference/query-dsl/mlt-query.asciidoc index 6cb984263e6f7..67e2856a6c3a4 100644 --- a/docs/reference/query-dsl/mlt-query.asciidoc +++ b/docs/reference/query-dsl/mlt-query.asciidoc @@ -241,6 +241,11 @@ number of terms that must match. The syntax is the same as the <>. (Defaults to `"30%"`). +`fail_on_unsupported_term`:: +Controls whether the query should fail if it encounters a term that is not +`text` or `keyword' (true) or ignore the error and continue (false). Defaults to +`true`. + `boost_terms`:: Each term in the formed query could be further boosted by their tf-idf score. This sets the boost factor to use when using this feature. Defaults to From 52d46c524620e6bc96951b0c3450d56d70ae01fa Mon Sep 17 00:00:00 2001 From: Sue-Gallagher Date: Thu, 7 Jun 2018 12:21:58 -0700 Subject: [PATCH 2/4] [DOCS] Added 'fail_on_unsupported_field' param to MLT. Closes #28008 --- docs/reference/query-dsl/mlt-query.asciidoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/reference/query-dsl/mlt-query.asciidoc b/docs/reference/query-dsl/mlt-query.asciidoc index 67e2856a6c3a4..975f7af9664aa 100644 --- a/docs/reference/query-dsl/mlt-query.asciidoc +++ b/docs/reference/query-dsl/mlt-query.asciidoc @@ -241,9 +241,11 @@ number of terms that must match. The syntax is the same as the <>. (Defaults to `"30%"`). -`fail_on_unsupported_term`:: -Controls whether the query should fail if it encounters a term that is not -`text` or `keyword' (true) or ignore the error and continue (false). Defaults to +`fail_on_unsupported_field`:: +Controls whether the query should fail (throw an exception) if any of the +specified fields are not of the supported types +(`text` or `keyword'). Set this to `false` to ignore the error and continue +processing. Defaults to `true`. `boost_terms`:: From f63617105e1eacf5bd1ec07d7fa4870d498d5420 Mon Sep 17 00:00:00 2001 From: Sue-Gallagher Date: Thu, 7 Jun 2018 12:27:23 -0700 Subject: [PATCH 3/4] [DOCS] Added 'fail_on_unsupported_field' param to MLT. Closes #28008 --- docs/reference/query-dsl/mlt-query.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-dsl/mlt-query.asciidoc b/docs/reference/query-dsl/mlt-query.asciidoc index 975f7af9664aa..6bc38b8584dfb 100644 --- a/docs/reference/query-dsl/mlt-query.asciidoc +++ b/docs/reference/query-dsl/mlt-query.asciidoc @@ -244,7 +244,7 @@ The syntax is the same as the < Date: Fri, 8 Jun 2018 10:13:57 -0700 Subject: [PATCH 4/4] [DOCS] Added 'fail_on_unsupported_field' param to MLT. Closes #28008 --- docs/reference/query-dsl/mlt-query.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-dsl/mlt-query.asciidoc b/docs/reference/query-dsl/mlt-query.asciidoc index 6bc38b8584dfb..bd66c7f071cd4 100644 --- a/docs/reference/query-dsl/mlt-query.asciidoc +++ b/docs/reference/query-dsl/mlt-query.asciidoc @@ -242,7 +242,7 @@ The syntax is the same as the <