diff options
author | Martijn van Groningen <martijn.v.groningen@gmail.com> | 2016-04-05 11:53:28 +0200 |
---|---|---|
committer | Martijn van Groningen <martijn.v.groningen@gmail.com> | 2016-04-19 11:20:31 +0200 |
commit | 40c22fc654f7b615baf877eb0c6b89bccc3f42cc (patch) | |
tree | 0252570ffa4ef532eb9d30fbb64715573e1f241b /docs/reference/mapping/types.asciidoc | |
parent | a2ab13ddd133888409700addd308c79583a67597 (diff) |
percolator: removed .percolator type instead a field of type `percolator` should be configured before indexing percolator queries
* Added an extra `field` parameter to the `percolator` query to indicate what percolator field should be used. This must be an existing field in the mapping of type `percolator`.
* The `.percolator` type is now forbidden. (just like any type that starts with a `.`)
This only applies for new indices created on 5.0 and later. Indices created on previous versions the .percolator type is still allowed to exist.
The new `percolator` field type isn't active in such indices and the `PercolatorQueryCache` knows how to load queries from these legacy indices.
The `PercolatorQueryBuilder` will not enforce that the `field` parameter is of type `percolator`.
Diffstat (limited to 'docs/reference/mapping/types.asciidoc')
-rw-r--r-- | docs/reference/mapping/types.asciidoc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/reference/mapping/types.asciidoc b/docs/reference/mapping/types.asciidoc index 30d6bd56b1..f309d1a485 100644 --- a/docs/reference/mapping/types.asciidoc +++ b/docs/reference/mapping/types.asciidoc @@ -41,6 +41,8 @@ Attachment datatype:: which supports indexing `attachments` like Microsoft Office formats, Open Document formats, ePub, HTML, etc. into an `attachment` datatype. +<<percolator>>:: Accepts queries from the query-dsl + [float] === Multi-fields @@ -83,6 +85,8 @@ include::types/text.asciidoc[] include::types/token-count.asciidoc[] +include::types/percolator.asciidoc[] + |