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

Upgrade to Lucene 9.9.0 #102782

Merged
merged 161 commits into from Dec 4, 2023
Merged

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    3e58f4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46a2cf6 View commit details
    Browse the repository at this point in the history
  3. Adds new max_inner_product vector similarity function (elastic#99527)

    Adds new max_inner_product vector similarity function. This differs from dot_product in the following ways:
    
    Doesn't require vectors to be normalized
    Scales the similarity between vectors differently to prevent negative scores
    benwtrent committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    81c8603 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Configuration menu
    Copy the full SHA
    0433159 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4074da0 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    8e24410 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b971d2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2db3e1c View commit details
    Browse the repository at this point in the history
  4. Refactor changes to IndexVersion. (elastic#99312)

    This adds a version for the Lucene upgrade and adjusts some tests.
    jpountz committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    6cf0c30 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. Configuration menu
    Copy the full SHA
    b066509 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3f4383 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2023

  1. Configuration menu
    Copy the full SHA
    c367858 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    b56d82a View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Configuration menu
    Copy the full SHA
    82df069 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b0f286 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    92deac7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e707cf3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c56896f View commit details
    Browse the repository at this point in the history
  4. Add RandomAccessInput#length to SeekTrackingDirectoryWrapper (elastic…

    …#99962)
    
    Fix compiling error after adding a new method to RandomAccessInput
    interface.
    iverase committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    3b5131e View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Configuration menu
    Copy the full SHA
    dc51139 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a9d949 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Configuration menu
    Copy the full SHA
    8209aa7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55fd68f View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2023

  1. Configuration menu
    Copy the full SHA
    0679604 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42dc4b4 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2023

  1. Configuration menu
    Copy the full SHA
    6b23b70 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ff1dd3 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Configuration menu
    Copy the full SHA
    9797c08 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39b204f View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    39a3fbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c744751 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. Configuration menu
    Copy the full SHA
    a3e1d3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    21eaf08 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    0b001ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49a39f5 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2023

  1. Configuration menu
    Copy the full SHA
    7e1ca81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d08de2 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2023

  1. Configuration menu
    Copy the full SHA
    9740dd5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1592888 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Configuration menu
    Copy the full SHA
    e81e2dc View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Configuration menu
    Copy the full SHA
    54bc091 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f40cbb View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Configuration menu
    Copy the full SHA
    e699904 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4745e6 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. Configuration menu
    Copy the full SHA
    dce780a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    965b0d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    0c32da2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2694f8d View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2023

  1. Configuration menu
    Copy the full SHA
    dae5f7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a88bc57 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2023

  1. Configuration menu
    Copy the full SHA
    ebb5d9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    830ad93 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    85e8f65 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b45d8cc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    45a4c1c View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    5f95168 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f0e20c View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. Configuration menu
    Copy the full SHA
    be758b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6026080 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Configuration menu
    Copy the full SHA
    c1eae02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    351e725 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Configuration menu
    Copy the full SHA
    7d4bcd8 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2023

  1. Configuration menu
    Copy the full SHA
    bb83b44 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2023

  1. Configuration menu
    Copy the full SHA
    6b8723a View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    d011f8b View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    416edc5 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Configuration menu
    Copy the full SHA
    e43dfad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1af27d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    16ac279 View commit details
    Browse the repository at this point in the history
  2. Update references to Lucene95Codec

    This is needed following apache/lucene#12685 and apache/lucene#12582
    javanna committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    9d51f8b View commit details
    Browse the repository at this point in the history
  3. Fix spotless issues

    javanna committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    6fd0776 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d24143f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1560639 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2d06146 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Configuration menu
    Copy the full SHA
    8cf48ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b3ecc2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5039406 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2023

  1. Configuration menu
    Copy the full SHA
    21de5fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9aefee6 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2023

  1. Configuration menu
    Copy the full SHA
    6b01689 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    071cd12 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Configuration menu
    Copy the full SHA
    dd2615d View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    0bd8b91 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecf1258 View commit details
    Browse the repository at this point in the history
  3. Switch ContextIndexSearcher to use Lucene's TaskExecutor (elastic#101537

    )
    
    We have contributed back to Lucene the changes we had made around running
    concurrent tasks. These include waiting for all tasks to finish when an
    exception is thrown, as well as not starting tasks when one of the
    previously run tasks throws an exception.
    
    The execution of concurrent tasks is now generalized within Lucene and
    exposed through a TaskExecutor that can be retrieved from the
    IndexSearcher and used to run tasks. We still have customizations that
    require us to override some of the search method, but with this change
    we rely on standard Lucene's behaviour for running concurrent tasks.
    javanna committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    e9776b2 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Configuration menu
    Copy the full SHA
    58cf676 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1e4ff0 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Configuration menu
    Copy the full SHA
    0a1d15f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e929da View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. Configuration menu
    Copy the full SHA
    b13d5a4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8592eeb View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2023

  1. Configuration menu
    Copy the full SHA
    7256feb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91ceabb View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2023

  1. Configuration menu
    Copy the full SHA
    a20b520 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. Configuration menu
    Copy the full SHA
    145a7ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34afe08 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. Configuration menu
    Copy the full SHA
    2daa7ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da728c5 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Configuration menu
    Copy the full SHA
    d7a77b3 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. Configuration menu
    Copy the full SHA
    4c09970 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cfba82d View commit details
    Browse the repository at this point in the history
  3. Fix compile errors (elastic#101874)

    IndexDiskUsageAnalyzer and IndexDiskUsageAnalyzerTests, as well as CompletionFieldMapper, CompletionFieldMapperTests and CompletionStatsCacheTests need adjusting after apache/lucene#12741 , to refer to the latest postings format.
    KuromojiTokenizerFactory needs adjusting after apache/lucene#12390
    javanna committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    180ef28 View commit details
    Browse the repository at this point in the history
  4. Adjust SortField comparators to use new Pruning API (elastic#101983)

    Introduced in apache/lucene#12405
    
    We should account for the changes in our overrides and API. Now, to indicate that no skipping can occur, we utilize `Pruning.NONE`.
    benwtrent committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    3f9ab8a View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. Configuration menu
    Copy the full SHA
    2247cb8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    940df2a View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2023

  1. Configuration menu
    Copy the full SHA
    d830543 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2023

  1. Configuration menu
    Copy the full SHA
    df125f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d15b16 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Configuration menu
    Copy the full SHA
    e3fc167 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    307a44b View commit details
    Browse the repository at this point in the history
  3. Resolve compile error in DenseVectorFieldMapper (elastic#102066)

    * Resolve compile error in DenseVectorFieldMapper
    
    A change in Lucene99HnswVectorsFormat requires that we adapt our code, see
    apache/lucene#12729
    
    * Add new Lucene file extensions
    
    * Fixing format name check
    
    ---------
    
    Co-authored-by: Benjamin Trent <4357155+benwtrent@users.noreply.github.com>
    javanna and benwtrent committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    6c4479d View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. Configuration menu
    Copy the full SHA
    dbd5cfc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81297b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    440450a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cfbf466 View commit details
    Browse the repository at this point in the history
  3. Fix failing tests due to new query to string format (elastic#102186)

    There have been some changes around range query toString format. This commit adjusts tests expecting particular outputs from the previous Lucene version
    benwtrent committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    30ab3b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    fc87985 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06f6745 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. Configuration menu
    Copy the full SHA
    47f19f5 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Configuration menu
    Copy the full SHA
    6e36163 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. Configuration menu
    Copy the full SHA
    61891b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Configuration menu
    Copy the full SHA
    0b27968 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6f65b0 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Configuration menu
    Copy the full SHA
    94ba922 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6b0055 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d4f01fc View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Configuration menu
    Copy the full SHA
    adfd7f8 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Configuration menu
    Copy the full SHA
    c2bc2fb View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Configuration menu
    Copy the full SHA
    581b6ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c9e835 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e802b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    954dee6 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2023

  1. Configuration menu
    Copy the full SHA
    fd8cbb6 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. Configuration menu
    Copy the full SHA
    a183379 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Configuration menu
    Copy the full SHA
    74d3748 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1aed4e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    488aa5e View commit details
    Browse the repository at this point in the history
  4. spotless

    javanna committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    c3b47a3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    96b20f2 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. Configuration menu
    Copy the full SHA
    129a30b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b140fe4 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Configuration menu
    Copy the full SHA
    8502d7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa4057d View commit details
    Browse the repository at this point in the history
  3. Add byte quantization for float vectors in HNSW (elastic#102093)

    Adds new `quantization_options` to `dense_vector`. This allows for
    vectors to be automatically quantized to `byte` when indexed.
    
    Example:
    
    ```
    PUT vectors
    {
      "mappings": {
        "properties": {
          "my_vector": {
            "type": "dense_vector",
            "index": true,
            "index_options": {
              "type": "int8_hnsw"
            }
          }
        }
      }
    }
    ```
    
    When querying, the query vector is automatically quantized and used when
    querying the HNSW graph. This reduces the memory required to only `25%`
    of what was previously required for `float` vectors at a slight loss of
    accuracy.
    
    This is currently only available when `index: true` and when using
    `hnsw`
    benwtrent committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    f00364a View commit details
    Browse the repository at this point in the history
  4. Use lucene 9.0.0 RC1

    ChrisHegarty committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    0f394d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b2479c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dc84d35 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    75c5b87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12906cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c8f24a View commit details
    Browse the repository at this point in the history
  4. Fixing byte quantized search test flakiness

    Quantized search result scores can be slightly different depending on
    if they are merged into a single segment, etc.
    benwtrent committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    eaa5889 View commit details
    Browse the repository at this point in the history
  5. Bump to lucene 9.9.0 RC2

    ChrisHegarty committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    d2584ec View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aeaca57 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    36869d4 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. Configuration menu
    Copy the full SHA
    b3525e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b01fe5e View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2023

  1. Configuration menu
    Copy the full SHA
    ff22c90 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. Update to 9.9.0 RC

    ChrisHegarty committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    237db90 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11185d0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4cf6f30 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    605c76e View commit details
    Browse the repository at this point in the history