From c946094d5b7899a37faaba542b3e5b3f26e26656 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Wed, 16 Nov 2016 16:15:28 +0100 Subject: [PATCH 1/2] Add documentation for lenient in multimatch `lenient` option is documented for `match` query but not for `multi_match` query. --- docs/reference/query-dsl/multi-match-query.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/reference/query-dsl/multi-match-query.asciidoc b/docs/reference/query-dsl/multi-match-query.asciidoc index 068156ff70f..44467cfd528 100644 --- a/docs/reference/query-dsl/multi-match-query.asciidoc +++ b/docs/reference/query-dsl/multi-match-query.asciidoc @@ -506,3 +506,10 @@ per-term `blended` queries. It accepts: =================================================== The `fuzziness` parameter cannot be used with the `cross_fields` type. =================================================== + +[[multimatch-leniency]] +==== Leniency + +The `lenient` parameter can be set to `true` to ignore exceptions caused by +data-type mismatches, such as trying to query a numeric field with a text +query string. Defaults to `false`. From 475a7ca84fea381b356493fdd1102f3ca4d43c92 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Thu, 17 Nov 2016 08:35:20 +0100 Subject: [PATCH 2/2] Add documentation for lenient in multimatch `lenient` option is documented for `match` query but not for `multi_match` query. --- .../query-dsl/multi-match-query.asciidoc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/docs/reference/query-dsl/multi-match-query.asciidoc b/docs/reference/query-dsl/multi-match-query.asciidoc index 44467cfd528..4ad75c6ca75 100644 --- a/docs/reference/query-dsl/multi-match-query.asciidoc +++ b/docs/reference/query-dsl/multi-match-query.asciidoc @@ -136,7 +136,7 @@ follows: * plus `tie_breaker * _score` for all other matching fields Also, accepts `analyzer`, `boost`, `operator`, `minimum_should_match`, -`fuzziness`, `prefix_length`, `max_expansions`, `rewrite`, `zero_terms_query` +`fuzziness`, `lenient`, `prefix_length`, `max_expansions`, `rewrite`, `zero_terms_query` and `cutoff_frequency`, as explained in <>. [IMPORTANT] @@ -232,7 +232,7 @@ The score from each `match` clause is added together, then divided by the number of `match` clauses. Also, accepts `analyzer`, `boost`, `operator`, `minimum_should_match`, -`fuzziness`, `prefix_length`, `max_expansions`, `rewrite`, `zero_terms_query` +`fuzziness`, `lenient`, `prefix_length`, `max_expansions`, `rewrite`, `zero_terms_query` and `cutoff_frequency`, as explained in <>, but *see <>*. @@ -277,7 +277,7 @@ GET /_search -------------------------------------------------- // CONSOLE -Also, accepts `analyzer`, `boost`, `slop` and `zero_terms_query` as explained +Also, accepts `analyzer`, `boost`, `lenient`, `slop` and `zero_terms_query` as explained in <>. Type `phrase_prefix` additionally accepts `max_expansions`. @@ -374,7 +374,7 @@ explanation: +blended("smith", fields: [first_name, last_name]) Also, accepts `analyzer`, `boost`, `operator`, `minimum_should_match`, -`zero_terms_query` and `cutoff_frequency`, as explained in +`lenient`, `zero_terms_query` and `cutoff_frequency`, as explained in <>. ===== `cross_field` and analysis @@ -506,10 +506,3 @@ per-term `blended` queries. It accepts: =================================================== The `fuzziness` parameter cannot be used with the `cross_fields` type. =================================================== - -[[multimatch-leniency]] -==== Leniency - -The `lenient` parameter can be set to `true` to ignore exceptions caused by -data-type mismatches, such as trying to query a numeric field with a text -query string. Defaults to `false`.