OpenSearch/plugins
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
..
analysis-icu Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-kuromoji Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-phonetic Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-smartcn Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-stempel Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-ukrainian Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
discovery-azure-classic Adapt InternalTestCluster to auto adjust `minimum_master_nodes` (#21458) 2016-11-15 13:42:26 +00:00
discovery-ec2 Lazy resolve unicast hosts 2016-11-22 14:17:04 -05:00
discovery-file Lazy resolve unicast hosts 2016-11-22 14:17:04 -05:00
discovery-gce Use pre-JDK9 style FilePermissions on JDK9 (#21540) 2016-11-15 09:31:32 +01:00
ingest-attachment Update to Tika 1.14 2016-11-16 11:29:14 +01:00
ingest-geoip Remove (again) test uses of onModule (#21414) 2016-11-10 16:06:14 -08:00
ingest-user-agent Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
jvm-example Remove (again) test uses of onModule (#21414) 2016-11-10 16:06:14 -08:00
mapper-murmur3 Add RangeFieldMapper for numeric and date range types 2016-11-29 10:10:14 -06:00
mapper-size Add RangeFieldMapper for numeric and date range types 2016-11-29 10:10:14 -06:00
repository-azure Fix settings diff generation for affix, list and group settings (#21788) 2016-11-24 21:53:04 +01:00
repository-gcs Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-hdfs Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-s3 Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
store-smb Remove store throttling. (#21573) 2016-11-17 09:33:32 +01:00
build.gradle Build: Remove old maven deploy support (#20403) 2016-09-19 15:10:41 -07:00