From e03fb602cd51988378af71a2d85b58fff839a009 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 6 Sep 2016 10:46:50 -0400 Subject: [PATCH] Add CONSOLE places where it is obviously missing These places already have other annotations like `// TEST` and `// TESTSETUP` so they are already in console format. --- docs/reference/mapping/params/geohash-prefix.asciidoc | 1 + docs/reference/mapping/params/lat-lon.asciidoc | 1 + docs/reference/search/suggesters/context-suggest.asciidoc | 2 ++ docs/reference/search/suggesters/phrase-suggest.asciidoc | 1 + 4 files changed, 5 insertions(+) diff --git a/docs/reference/mapping/params/geohash-prefix.asciidoc b/docs/reference/mapping/params/geohash-prefix.asciidoc index 33bd21bdeb6..51dfc829947 100644 --- a/docs/reference/mapping/params/geohash-prefix.asciidoc +++ b/docs/reference/mapping/params/geohash-prefix.asciidoc @@ -41,6 +41,7 @@ PUT my_index } } -------------------------------------------------- +// CONSOLE // TEST[warning:geo_point geohash_precision parameter is deprecated and will be removed in the next major release] // TEST[warning:geo_point geohash_prefix parameter is deprecated and will be removed in the next major release] // TEST[warning:geo_point geohash parameter is deprecated and will be removed in the next major release] diff --git a/docs/reference/mapping/params/lat-lon.asciidoc b/docs/reference/mapping/params/lat-lon.asciidoc index 002f91ef3f3..234c652c932 100644 --- a/docs/reference/mapping/params/lat-lon.asciidoc +++ b/docs/reference/mapping/params/lat-lon.asciidoc @@ -31,6 +31,7 @@ PUT my_index } } -------------------------------------------------- +// CONSOLE // TEST[warning:geo_point lat_lon parameter is deprecated and will be removed in the next major release] <1> Setting `lat_lon` to true indexes the geo-point in the `location.lat` and `location.lon` fields. diff --git a/docs/reference/search/suggesters/context-suggest.asciidoc b/docs/reference/search/suggesters/context-suggest.asciidoc index fec167c7b84..293e8bb573c 100644 --- a/docs/reference/search/suggesters/context-suggest.asciidoc +++ b/docs/reference/search/suggesters/context-suggest.asciidoc @@ -71,6 +71,7 @@ PUT place_path_category } } -------------------------------------------------- +// CONSOLE // TESTSETUP <1> Defines a `category` context named 'place_type' where the categories must be sent with the suggestions. @@ -330,6 +331,7 @@ POST place/_suggest?pretty } } -------------------------------------------------- +// CONSOLE // TEST[continued] <1> The context query filters for suggestions that fall under the geo location represented by a geohash of '(43.662, -79.380)' diff --git a/docs/reference/search/suggesters/phrase-suggest.asciidoc b/docs/reference/search/suggesters/phrase-suggest.asciidoc index 755650e824d..dace399d650 100644 --- a/docs/reference/search/suggesters/phrase-suggest.asciidoc +++ b/docs/reference/search/suggesters/phrase-suggest.asciidoc @@ -77,6 +77,7 @@ POST test/test {"title": "nobel prize"} POST _refresh -------------------------------------------------- +// CONSOLE // TESTSETUP Once you have the analyzers and mappings set up you can use the `phrase`