From f95034454628b6db1f2b4a5fe88dc7ed2d2c97f4 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Wed, 21 May 2014 20:47:25 +0200 Subject: [PATCH] [DOCS] Fixed title levels in context suggester --- .../search/suggesters/context-suggest.asciidoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/reference/search/suggesters/context-suggest.asciidoc b/docs/reference/search/suggesters/context-suggest.asciidoc index 8c27bcc1506..baa289b16e9 100644 --- a/docs/reference/search/suggesters/context-suggest.asciidoc +++ b/docs/reference/search/suggesters/context-suggest.asciidoc @@ -1,5 +1,5 @@ [[suggester-context]] -== Context Suggester +=== Context Suggester coming[1.2.0] @@ -66,7 +66,7 @@ context. These type will be explained further in the following sections. [[suggester-context-category]] [float] -=== Category Context +==== Category Context The `category` context allows you to specify one or more categories in the document at index time. The document will be assigned to each named category, which can then be queried later. The category type also allows to specify a field to extract the categories from. The `path` parameter is used to @@ -74,7 +74,7 @@ specify this field of the documents that should be used. If the referenced field values, all these values will be used as alternative categories. [float] -==== Category Mapping +===== Category Mapping The mapping for a category is simply defined by its `default` values. These can either be defined as list of *default* categories: @@ -120,7 +120,7 @@ field named `color_field`. If this field does not exist a category *red* is assu the context *color*. [float] -==== Indexing category contexts +===== Indexing category contexts Within a document the category is specified either as an `array` of values, a single value or `null`. A list of values is interpreted as alternative categories. So a document belongs to all the categories defined. If the category is `null` or remains @@ -143,7 +143,7 @@ PUT services/service/1 -------------------------------------------------- [float] -==== Category Query +===== Category Query A query within a category works similar to the configuration. If the value is `null` the mappings default categories will be used. Otherwise the suggestion takes place for all documents that have at least one category in common with the query. @@ -167,13 +167,13 @@ POST services/_suggest?pretty' [[suggester-context-geo]] [float] -=== Geo location Context +==== Geo location Context A `geo` context allows you to limit results to those that lie within a certain distance of a specified geolocation. At index time, a lat/long geo point is converted into a geohash of a certain precision, which provides the context. [float] -==== Geo location Mapping +===== Geo location Mapping The mapping for a geo context accepts four settings, only of which `precision` is required: [horizontal] @@ -215,7 +215,7 @@ locations. -------------------------------------------------- [float] -==== Geo location Config +===== Geo location Config Within a document a geo location retrieved from the mapping definition can be overridden by another location. In this case the context mapped to a geo location supports all @@ -239,7 +239,7 @@ PUT services/service/1 -------------------------------------------------- [float] -==== Geo location Query +===== Geo location Query Like in the configuration, querying with a geo location in context, the geo location query supports all representations of a `geo_point` to define the location. In this