From 9a90bdce01592927c61956c3324cab69722abbdb Mon Sep 17 00:00:00 2001 From: Isabel Drost-Fromm Date: Wed, 4 May 2016 12:04:28 +0200 Subject: [PATCH] Add deprecation warnings for ignore_malformed to reference docs --- docs/reference/query-dsl/geo-bounding-box-query.asciidoc | 3 +++ docs/reference/query-dsl/geo-distance-query.asciidoc | 5 +++++ docs/reference/query-dsl/geo-polygon-query.asciidoc | 3 +++ 3 files changed, 11 insertions(+) diff --git a/docs/reference/query-dsl/geo-bounding-box-query.asciidoc b/docs/reference/query-dsl/geo-bounding-box-query.asciidoc index 2630e6cf048..00120a98fc9 100644 --- a/docs/reference/query-dsl/geo-bounding-box-query.asciidoc +++ b/docs/reference/query-dsl/geo-bounding-box-query.asciidoc @@ -52,6 +52,9 @@ Then the following simple query can be executed with a |Option |Description |`_name` |Optional name field to identify the filter +|`ignore_malformed` |deprecated[5.0.0,Use `validation_method` instead] Set to `true` to +accept geo points with invalid latitude or longitude (default is `false`). + |`validation_method` |Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or longitude, set to `COERCE` to also try to infer correct latitude or longitude. (default is `STRICT`). diff --git a/docs/reference/query-dsl/geo-distance-query.asciidoc b/docs/reference/query-dsl/geo-distance-query.asciidoc index 2b80241dfc5..c29391e5b57 100644 --- a/docs/reference/query-dsl/geo-distance-query.asciidoc +++ b/docs/reference/query-dsl/geo-distance-query.asciidoc @@ -162,6 +162,11 @@ The following are options allowed on the filter: Optional name field to identify the query +`ignore_malformed`:: + + deprecated[5.0.0,Use `validation_method` instead] Set to `true` to accept geo points with invalid latitude or + longitude (default is `false`). + `validation_method`:: Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or diff --git a/docs/reference/query-dsl/geo-polygon-query.asciidoc b/docs/reference/query-dsl/geo-polygon-query.asciidoc index ef80de82079..5717c5dc924 100644 --- a/docs/reference/query-dsl/geo-polygon-query.asciidoc +++ b/docs/reference/query-dsl/geo-polygon-query.asciidoc @@ -34,6 +34,9 @@ points. Here is an example: |Option |Description |`_name` |Optional name field to identify the filter +|`ignore_malformed` |deprecated[5.0.0,Use `validation_method` instead] Set to `true` to accept geo points with invalid latitude or +longitude (default is `false`). + |`validation_method` |Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or longitude, `COERCE` to try and infer correct latitude or longitude, or `STRICT` (default is `STRICT`).