소스 검색

[GEO] fix docs for geo_point "validate" option

Documentation states false as the default for "validate", "validate_lon", and "validate_lat" leading to confusion as described in issue #9539. This simple fix corrects the documentation and communicates that these fields will be deprecated and removed in upcoming versions.

closes #9539
Nicholas Knize 10 년 전
부모
커밋
c2ec463cdb
1개의 변경된 파일12개의 추가작업 그리고 9개의 파일을 삭제
  1. 12 9
      docs/reference/mapping/types/geo-point-type.asciidoc

+ 12 - 9
docs/reference/mapping/types/geo-point-type.asciidoc

@@ -138,15 +138,18 @@ but also all its parent cells (true prefixes) will be indexed as well. The
 number of terms that will be indexed depends on the `geohash_precision`.
 Defaults to `false`. *Note*: This option implicitly enables `geohash`.
 
-|`validate` |Set to `true` to reject geo points with invalid latitude or
-longitude (default is `false`). *Note*: Validation only works when
-normalization has been disabled.
-
-|`validate_lat` |Set to `true` to reject geo points with an invalid
-latitude.
-
-|`validate_lon` |Set to `true` to reject geo points with an invalid
-longitude.
+|`validate` |Set to `false` to accept geo points with invalid latitude or
+longitude (default is `true`). *Note*: Validation only works when
+normalization has been disabled. This option will be deprecated and removed
+in upcoming releases.
+
+|`validate_lat` |Set to `false` to accept geo points with an invalid
+latitude (default is `true`). This option will be deprecated and removed
+in upcoming releases.
+
+|`validate_lon` |Set to `false` to accept geo points with an invalid
+longitude (default is `true`). This option will be deprecated and removed
+in upcoming releases.
 
 |`normalize` |Set to `true` to normalize latitude and longitude (default
 is `true`).