OpenSearch/modules
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
..
aggs-matrix-stats Clean up of Script. 2016-11-10 09:59:13 -08:00
ingest-common add `ignore_missing` option to SplitProcessor (#20982) 2016-11-16 15:46:09 +02:00
lang-expression Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
lang-mustache Remove generics from ActionRequest 2016-11-14 15:32:01 -08:00
lang-painless [Test] Mute EqualsTests..testBranch(Not)EqualsDefAndPrimitive 2016-11-25 17:21:59 +01:00
percolator Add RangeFieldMapper for numeric and date range types 2016-11-29 10:10:14 -06:00
reindex Improve handling of unreleased versions 2016-11-23 15:49:05 -05:00
transport-netty4 Remove connectToNodeLight and replace it with a connection profile (#21799) 2016-11-29 09:35:07 +01:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00