From 1e3ffa0df7dcf6b2a9dc019f190899e4825cff7d Mon Sep 17 00:00:00 2001 From: David Pilato Date: Tue, 17 Sep 2013 14:20:26 +0200 Subject: [PATCH] Add distance supported units --- .../query-dsl/filters/geo-distance-filter.asciidoc | 6 +++--- docs/reference/search/facets/geo-distance-facet.asciidoc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/query-dsl/filters/geo-distance-filter.asciidoc b/docs/reference/query-dsl/filters/geo-distance-filter.asciidoc index 7b8370ba950..9c5a42a3e54 100644 --- a/docs/reference/query-dsl/filters/geo-distance-filter.asciidoc +++ b/docs/reference/query-dsl/filters/geo-distance-filter.asciidoc @@ -142,9 +142,9 @@ The following are options allowed on the filter: |======================================================================= |Option |Description |`distance` |The distance to include hits in the filter. The distance -can be a numeric value, and then the `unit` (either `mi`/@miles@ or `km` -can be set) controlling the unit. Or a single string with the unit as -well. +can be a numeric value, and then the `unit` (either `mi`, `miles`, `in`, `inch`, `yd`, `yards`, `km`, `kilometers`, +`mm`, `millimeters`, `cm`, `centimeters`, `m` or `meters` can be set) controlling the unit. +Or a single string with the unit as well. |`distance_type` |How to compute the distance. Can either be `arc` (better precision) or `plane` (faster). Defaults to `arc`. diff --git a/docs/reference/search/facets/geo-distance-facet.asciidoc b/docs/reference/search/facets/geo-distance-facet.asciidoc index 4e3d366f450..49533b76c1b 100644 --- a/docs/reference/search/facets/geo-distance-facet.asciidoc +++ b/docs/reference/search/facets/geo-distance-facet.asciidoc @@ -169,7 +169,7 @@ itself. |======================================================================= |Option |Description |`unit` |The unit the ranges are provided in. Defaults to `km`. Can also -be `mi` or `miles`. +be `mi`, `miles`, `in`, `inch`, `yd`, `yards`, `kilometers`, `mm`, `millimeters`, `cm`, `centimeters`, `m` or `meters`. |`distance_type` |How to compute the distance. Can either be `arc` (better precision) or `plane` (faster). Defaults to `arc`. @@ -249,4 +249,4 @@ field. [NOTE] -- The facet can work with multiple locations per document. --- \ No newline at end of file +--