From 475a7ca84fea381b356493fdd1102f3ca4d43c92 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Thu, 17 Nov 2016 08:35:20 +0100 Subject: [PATCH] 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`.