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

Add field type for version strings #59773

Merged
merged 41 commits into from
Sep 21, 2020
Merged

Commits on Jul 20, 2020

  1. Add field type for version strings

    This PR adds a new 'version' field type that allows indexing string values
    representing software versions similar to the ones defined in the Semantic
    Versioning definition (semver.org). The field behaves very similar to a
    'keyword' field but allows efficient sorting and range queries that take into
    accound the special ordering needed for version strings. For example, the main
    version parts are sorted numerically (ie 2.0.0 < 11.0.0) whereas this wouldn't
    be possible with 'keyword' fields today.
    
    Valid version values are similar to the Semantic Versioning definition, with the
    notable exception that in addition to the "main" version consiting of
    major.minor.patch, we allow less or more than three numeric identifiers, i.e.
    "1.2" or "1.4.6.123.12" are treated as valid too.
    
    Relates to elastic#48878
    Christoph Büscher committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    343310c View commit details
    Browse the repository at this point in the history
  2. Add yaml for search, ranges and scripting

    Christoph Büscher committed Jul 20, 2020
    Configuration menu
    Copy the full SHA
    397a7c0 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2020

  1. Add brute force regex query support

    Christoph Büscher committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    08989e7 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2020

  1. Add fuzzy query support

    Christoph Büscher committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    8a1acc2 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    bc972ad View commit details
    Browse the repository at this point in the history
  3. Remove some left-over commented code

    Christoph Büscher committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    5bac785 View commit details
    Browse the repository at this point in the history
  4. Adding tests

    Christoph Büscher committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    8a7b43c View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. Make string_stats work

    Christoph Büscher committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    910616e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    6d71b52 View commit details
    Browse the repository at this point in the history
  3. Adressing review comments

    Christoph Büscher committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    970085a View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2020

  1. Remove 'store_malformed' option

    Christoph Büscher committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    bdb89a2 View commit details
    Browse the repository at this point in the history
  2. Add tests for handling empty string

    Christoph Büscher committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    81bb114 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2020

  1. fix yaml test

    Christoph Büscher committed Jul 30, 2020
    Configuration menu
    Copy the full SHA
    5fcf8a7 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Jul 30, 2020
    Configuration menu
    Copy the full SHA
    1f3c995 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2020

  1. Change range query to points approximation and dv validation

    Christoph Büscher committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    cfe2dba View commit details
    Browse the repository at this point in the history
  2. Register DocValueFormat via plugin

    Christoph Büscher committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    c70e7c1 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2020

  1. Merge branch 'master' into add-version-field

    Christoph Büscher committed Aug 17, 2020
    Configuration menu
    Copy the full SHA
    e45ef4a View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2020

  1. Merge branch 'master' into add-version-field

    Christoph Büscher committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    24651d1 View commit details
    Browse the repository at this point in the history
  2. Add valueFetcher() method

    Christoph Büscher committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    57b040f View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. Merge branch 'master' of github.com:elastic/elasticsearch into add-ve…

    …rsion-field
    Christoph Büscher committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    c321e0d View commit details
    Browse the repository at this point in the history
  2. Restrict field options by moving to ParametrizedFieldMapper

    Christoph Büscher committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    5b902fb View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2020

  1. Merge branch 'master' into add-version-field

    Christoph Büscher committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    758b834 View commit details
    Browse the repository at this point in the history
  2. Change range query validation part

    Christoph Büscher committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    eaa1ef8 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2020

  1. Small improvement to range query using points

    Christoph Büscher committed Aug 31, 2020
    Configuration menu
    Copy the full SHA
    82a40ab View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Aug 31, 2020
    Configuration menu
    Copy the full SHA
    dacf813 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2020

  1. Add helper methods to versions ScriptDocValues to help with version p…

    …art extraction
    Christoph Büscher committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    e4b0728 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    3c72862 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2020

  1. Merge branch 'master' into add-version-field

    Christoph Büscher committed Sep 8, 2020
    Configuration menu
    Copy the full SHA
    4de9a2e View commit details
    Browse the repository at this point in the history
  2. Removing points and subfields

    Christoph Büscher committed Sep 8, 2020
    Configuration menu
    Copy the full SHA
    6c3266e View commit details
    Browse the repository at this point in the history
  3. Add tests for new regex case-insensitivity option

    Christoph Büscher committed Sep 8, 2020
    Configuration menu
    Copy the full SHA
    b26a3f1 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2020

  1. Adding docs

    Christoph Büscher committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    c0c39bb View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. Adressing review comments

    Christoph Büscher committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    d56499e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    7e2a4f5 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. Switch script method from isPreRelease to isRelease

    Christoph Büscher committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    94def20 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into add-version-field

    Christoph Büscher committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    67df1d3 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. Another review iteration

    Christoph Büscher committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    ce51484 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2020

  1. Another round of reviews

    Christoph Büscher committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    04ac11d View commit details
    Browse the repository at this point in the history
  2. Moving docs under 'structured'

    Christoph Büscher committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    ccebd6f View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. Merge branch 'master' into add-version-field

    Christoph Büscher committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    b0abc83 View commit details
    Browse the repository at this point in the history
  2. iter

    Christoph Büscher committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    4c0b1e9 View commit details
    Browse the repository at this point in the history
  3. Removing specialized script doc values functions

    Christoph Büscher committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    6849550 View commit details
    Browse the repository at this point in the history