OpenSearch/docs/reference
Nicholas Knize af1ab68b64 Add RangeFieldMapper for numeric and date range types
Lucene 6.2 added index and query support for numeric ranges. This commit adds a new RangeFieldMapper for indexing numeric (int, long, float, double) and date ranges and creating appropriate range and term queries. The design is similar to NumericFieldMapper in that it uses a RangeType enumerator for implementing the logic specific to each type. The following range types are supported by this field mapper: int_range, float_range, long_range, double_range, date_range.

Lucene does not provide a DocValue field specific to RangeField types so the RangeFieldMapper implements a CustomRangeDocValuesField for handling doc value support.

When executing a Range query over a Range field, the RangeQueryBuilder has been enhanced to accept a new relation parameter for defining the type of query as one of: WITHIN, CONTAINS, INTERSECTS. This provides support for finding all ranges that are related to a specific range in a desired way. As with other spatial queries, DISJOINT can be achieved as a MUST_NOT of an INTERSECTS query.
2016-11-29 10:10:14 -06:00
..
aggregations include not work in 5.x anymore (#21815) 2016-11-28 11:02:59 +01:00
analysis Synonym Graph Support (LUCENE-6664) (#21517) 2016-11-28 09:25:49 -08:00
cat Remove lang-python and lang-javascript (#20734) 2016-11-21 22:13:25 -05:00
cluster Fixed bad asciidoc ID in node stats 2016-11-15 17:39:15 +00:00
docs Fixing cut-in-middle paragraph (#21850) 2016-11-29 14:00:26 +01:00
how-to Add a recommendation against large documents to the docs. (#21652) 2016-11-21 15:01:36 +01:00
images Docs: clarify calculation of sigma and lambda in function_score (#20267) 2016-09-02 14:41:07 +02:00
index-modules Update store.asciidoc (#21353) 2016-11-05 14:58:16 +01:00
indices Document that the PUT mapping API with the _default_ type overwrites instead of merging 2016-11-26 12:43:56 +01:00
ingest Merge branch 'master' into feature/seq_no 2016-11-16 09:10:35 -05:00
mapping Add RangeFieldMapper for numeric and date range types 2016-11-29 10:10:14 -06:00
migration Remove groovy scripting language (#21607) 2016-11-22 19:24:12 -08:00
modules [DOCS] fixes word usage in allocation awareness docs 2016-11-25 11:47:40 -05:00
query-dsl Update percolate-query.asciidoc 2016-11-26 12:35:33 +01:00
search then -> than (#21829) 2016-11-28 17:04:56 +01:00
setup Remove stale mention of minimum master nodes check 2016-11-18 06:56:23 -05:00
testing Update docs after test-framework moved 2016-11-02 09:51:55 -04:00
aggregations.asciidoc CONSOLEify some aggs docs 2016-10-03 09:22:56 -04:00
analysis.asciidoc First pass at improving analyzer docs (#18269) 2016-05-11 14:17:56 +02:00
api-conventions.asciidoc Document `error_trace` 2016-11-22 19:16:07 -05:00
cat.asciidoc Allows multiple patterns to be specified for index templates (#21009) 2016-11-10 18:00:30 -05:00
cluster.asciidoc Convert more docs to CONSOLE 2016-09-21 09:36:21 -04:00
docs.asciidoc Add support for waiting until a refresh occurs 2016-06-06 11:37:53 -04:00
getting-started.asciidoc Remove groovy scripting language (#21607) 2016-11-22 19:24:12 -08:00
glossary.asciidoc Improve glossary to not refer to types as "like a table" (#17704) 2016-04-13 14:29:47 +02:00
how-to.asciidoc Add support for `quote_field_suffix` to `simple_query_string`. (#21060) 2016-10-28 09:11:57 +02:00
index-modules.asciidoc Add a hard limit for `index.number_of_shard` (#20682) 2016-09-29 11:03:30 +02:00
index.asciidoc [docs] Document Docker installation method 2016-11-17 15:06:32 +02:00
indices.asciidoc Removed the upgrade API docs 2016-10-11 12:21:46 +02:00
ingest.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
mapping.asciidoc Reorganised docs for mapping safeguard settings 2016-09-22 14:58:17 +02:00
modules.asciidoc Remove lang-python and lang-javascript (#20734) 2016-11-21 22:13:25 -05:00
query-dsl.asciidoc
redirects.asciidoc Add an indices-upgrade section to the docs redirects. 2016-10-11 12:39:02 +02:00
release-notes.asciidoc Remove links to release notes 2016-09-08 18:07:39 +02:00
search.asciidoc Makes search action cancelable by task management API 2016-10-25 12:27:34 -10:00
setup.asciidoc Die with dignity 2016-07-07 14:44:03 -04:00
testing.asciidoc