[DOCS] Fixed title levels in context suggester

This commit is contained in:
Clinton Gormley 2014-05-21 20:47:25 +02:00
parent a29b4a800d
commit f950344546
1 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
[[suggester-context]] [[suggester-context]]
== Context Suggester === Context Suggester
coming[1.2.0] coming[1.2.0]
@ -66,7 +66,7 @@ context. These type will be explained further in the following sections.
[[suggester-context-category]] [[suggester-context-category]]
[float] [float]
=== Category Context ==== Category Context
The `category` context allows you to specify one or more categories in the document at index time. 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 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 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. values, all these values will be used as alternative categories.
[float] [float]
==== Category Mapping ===== Category Mapping
The mapping for a category is simply defined by its `default` values. These can either be The mapping for a category is simply defined by its `default` values. These can either be
defined as list of *default* categories: 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*. the context *color*.
[float] [float]
==== Indexing category contexts ===== Indexing category contexts
Within a document the category is specified either as an `array` of values, a 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 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 a document belongs to all the categories defined. If the category is `null` or remains
@ -143,7 +143,7 @@ PUT services/service/1
-------------------------------------------------- --------------------------------------------------
[float] [float]
==== Category Query ===== Category Query
A query within a category works similar to the configuration. If the value is `null` 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 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. 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]] [[suggester-context-geo]]
[float] [float]
=== Geo location Context ==== Geo location Context
A `geo` context allows you to limit results to those that lie within a certain distance 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 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. geohash of a certain precision, which provides the context.
[float] [float]
==== Geo location Mapping ===== Geo location Mapping
The mapping for a geo context accepts four settings, only of which `precision` is required: The mapping for a geo context accepts four settings, only of which `precision` is required:
[horizontal] [horizontal]
@ -215,7 +215,7 @@ locations.
-------------------------------------------------- --------------------------------------------------
[float] [float]
==== Geo location Config ===== Geo location Config
Within a document a geo location retrieved from the mapping definition can be overridden 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 by another location. In this case the context mapped to a geo location supports all
@ -239,7 +239,7 @@ PUT services/service/1
-------------------------------------------------- --------------------------------------------------
[float] [float]
==== Geo location Query ===== Geo location Query
Like in the configuration, querying with a geo location in context, the geo location 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 query supports all representations of a `geo_point` to define the location. In this