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 range queries on _type field for singe type indices #31756

Merged
merged 5 commits into from
Jul 18, 2018

Commits on Jul 3, 2018

  1. Fix range queries on _type field for singe type indices

    With the introduction of single types in 6.x, the `_type` field is no longer
    indexed, which leads to certain queries that were working before throw errors
    now. One such query is the `range` query, that, if performed on a single typer
    index, currently throws an IAE since the field is not indexed.
    This change adds special treatment for this case in the TypeFieldMapper,
    comparing the range queries lower and upper bound to the one existing type and
    either returns a MatchAllDocs or a MatchNoDocs query.
    
    Relates to elastic#31632
    Closes elastic#31476
    Christoph Büscher committed Jul 3, 2018
    Configuration menu
    Copy the full SHA
    a5fb0e8 View commit details
    Browse the repository at this point in the history
  2. iter

    Christoph Büscher committed Jul 3, 2018
    Configuration menu
    Copy the full SHA
    04b2d9d View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2018

  1. Merge branch 'master' into rangeQuery-singleType

    Christoph Büscher committed Jul 4, 2018
    Configuration menu
    Copy the full SHA
    f9f392b View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2018

  1. Merge branch 'master' into rangeQuery-singleType

    Christoph Büscher committed Jul 17, 2018
    Configuration menu
    Copy the full SHA
    05e3001 View commit details
    Browse the repository at this point in the history
  2. iter

    Christoph Büscher committed Jul 17, 2018
    Configuration menu
    Copy the full SHA
    c5f698a View commit details
    Browse the repository at this point in the history