Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the MapperFieldType.rangeQuery API. #26552

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Sep 8, 2017

RangeQueryBuilder needs to perform too many instanceof checks in order to
check for date or range fields in order to know what it should do with the
shape relation, time zone and date format.

This commit adds those 3 parameters to the rangeQuery factory method so that
those instanceof checks are not necessary anymore.

RangeQueryBuilder needs to perform too many `instanceof` checks in order to
check for `date` or `range` fields in order to know what it should do with the
shape relation, time zone and date format.

This commit adds those 3 parameters to the `rangeQuery` factory method so that
those instanceof checks are not necessary anymore.
@jpountz jpountz added :Search Foundations/Mapping Index mappings, including merging and defining field types >non-issue v6.1.0 v7.0.0 labels Sep 8, 2017
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jpountz jpountz merged commit 1adee8b into elastic:master Sep 11, 2017
@jpountz jpountz deleted the fix/range_query_api branch September 11, 2017 09:02
jpountz added a commit that referenced this pull request Sep 11, 2017
RangeQueryBuilder needs to perform too many `instanceof` checks in order to
check for `date` or `range` fields in order to know what it should do with the
shape relation, time zone and date format.

This commit adds those 3 parameters to the `rangeQuery` factory method so that
those instanceof checks are not necessary anymore.
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Sep 12, 2017
…rflow

* origin/master: (59 commits)
  Fix Lucene version of 5.6.1.
  Remove azure deprecated settings (elastic#26099)
  Handle the 5.6.0 release
  Allow plugins to validate cluster-state on join (elastic#26595)
  Remove index mapper dynamic settings (elastic#25734)
  update AWS SDK for ECS Task IAM support in discovery-ec2 (elastic#26479)
  Azure repository: Accelerate the listing of files (used in delete snapshot) (elastic#25710)
  Build: Remove norelease from forbidden patterns (elastic#26592)
  Fix reference to painless inside expression engine (elastic#26528)
  Build: Move javadoc linking to root build.gradle (elastic#26529)
  Test: Remove leftover static bwc test case (elastic#26584)
  Docs: Remove remaining references to file and native scripts (elastic#26580)
  Snapshot fallback should consider build.snapshot
  elastic#26496: Set the correct bwc version after backport to 6.x
  Fix the MapperFieldType.rangeQuery API. (elastic#26552)
  Deduplicate `_field_names`. (elastic#26550)
  [Docs] Update method setSource(byte[] source) (elastic#26561)
  [Docs] Fix typo in javadocs (elastic#26556)
  Allow multiple digits in Vagrant 2.x minor versions
  Support Vagrant 2.x
  ...
cbuescher pushed a commit that referenced this pull request Dec 18, 2017
#27878)

The mixed cluster test are currently failing the range/10_basic rest tests because
they are testing the use of range fields in query_string queries in a mixed cluster 
with 5.6 nodes. According to #26552 this feature was only merged to version 6.1.0.
This change moves the test causing these failures to their own test section that can 
be skipped for versions before 6.1.0.
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types v6.1.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants