- 
                Notifications
    
You must be signed in to change notification settings  - Fork 25.6k
 
Update sparse_vector field mapping to include default setting for token pruning #129089
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
          
     Merged
      
      
            markjhoy
  merged 64 commits into
  elastic:main
from
markjhoy:markjhoy/add_sparse_vector_token_pruning_index_options
  
      
      
   
  Jun 23, 2025 
      
    
  
     Merged
                    Changes from 29 commits
      Commits
    
    
            Show all changes
          
          
            64 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      4be9290
              
                Initial checkin of refactored index_options code
              
              
                markjhoy f0f0279
              
                [CI] Auto commit changes from spotless
              
              
                 3281cc2
              
                initial unit testing
              
              
                markjhoy 39406c3
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 854a78e
              
                complete unit tests; add yaml tests
              
              
                markjhoy fb8623a
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 110d04e
              
                [CI] Auto commit changes from spotless
              
              
                 0ce5679
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 46bd54d
              
                register test feature for sparse vector
              
              
                markjhoy e5d5a98
              
                Update docs/changelog/129089.yaml
              
              
                markjhoy a8cfb81
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy f1a07c8
              
                update changelog
              
              
                markjhoy 2fa6a88
              
                add docs
              
              
                markjhoy 7151d4a
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy f98c894
              
                explicit set default index_options if null
              
              
                markjhoy 68949c0
              
                [CI] Auto commit changes from spotless
              
              
                 aeedc14
              
                update yaml tests; update docs
              
              
                markjhoy c98af00
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 6e6c667
              
                fix yaml tests
              
              
                markjhoy 87ab9dd
              
                readd auth for teardown
              
              
                markjhoy afd01d1
              
                only serialize index options if not default
              
              
                markjhoy dc4b71b
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 3f4801b
              
                [CI] Auto commit changes from spotless
              
              
                 6307f93
              
                serialization refactor; pass index version around
              
              
                markjhoy 8294191
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy fd61d59
              
                [CI] Auto commit changes from spotless
              
              
                 d812821
              
                fix transport versions merge
              
              
                markjhoy b7c9904
              
                fix up docs
              
              
                markjhoy 350910c
              
                [CI] Auto commit changes from spotless
              
              
                 aeec0ca
              
                fix docs; add include_defaults unit and yaml test
              
              
                markjhoy 820ea84
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 7a68727
              
                [CI] Auto commit changes from spotless
              
              
                 7f40f95
              
                override getIndexReaderManager for SemanticQueryBuilderTests
              
              
                markjhoy e99b510
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 67e1f8d
              
                [CI] Auto commit changes from spotless
              
              
                 c165867
              
                cleanup mapper/builder/tests; index vers. in type
              
              
                markjhoy 8ac4ebc
              
                [CI] Auto commit changes from spotless
              
              
                 584030c
              
                cleanups to mapper tests for clarity
              
              
                markjhoy 05ff647
              
                [CI] Auto commit changes from spotless
              
              
                 1cab345
              
                move feature into mappers; fix yaml tests
              
              
                markjhoy 71af331
              
                cleanups; add comments; remove redundant test
              
              
                markjhoy 93872db
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 308961f
              
                [CI] Auto commit changes from spotless
              
              
                 2d5bfb7
              
                escape more periods in the YAML tests
              
              
                markjhoy e9f7c40
              
                cleanup mapper and type tests
              
              
                markjhoy 733ac3f
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy b30377c
              
                [CI] Auto commit changes from spotless
              
              
                 5895490
              
                rename mapping for previous index test
              
              
                markjhoy 31a3dfc
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 2957699
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 20d355d
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy cc37995
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 434a4a6
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 275cc30
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 4934dab
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy f659d39
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 4fca2eb
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 8a80167
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 583e5f1
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 65817d2
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                kderusso 874b8b3
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 4d6a83e
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy 8623573
              
                set explicit number of shards for yaml test
              
              
                markjhoy a2f7ad2
              
                Merge branch 'main' into markjhoy/add_sparse_vector_token_pruning_ind…
              
              
                markjhoy File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 129089 | ||
| summary: Update `sparse_vector` field mapping to include default setting for token pruning | ||
| area: Mapping | ||
| type: enhancement | ||
| issues: [] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.