-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Automatically map floats as dense vector #98512
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
kderusso
merged 48 commits into
elastic:main
from
kderusso:kderusso/dense-vector-add-default-mappings
Sep 6, 2023
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
d0ba2d0
Initial POC
kderusso 9eb75bf
Comments
kderusso b057810
Cleanup
kderusso 6ae3a7a
Cleanup
kderusso 280a234
Typo
kderusso 5c1c1af
Spotless
kderusso d2855a1
Initial yaml test
kderusso 4034f13
Add more yaml test cases
kderusso 736378e
Fix typo in yaml
kderusso 1588021
Fix another typo in test
kderusso e0021f5
Trying to make sure index and dims are returned in mappings too
kderusso 4c8fdaa
Prepare for rebase
kderusso d5b0894
Fix compile error
kderusso 6d4b143
Go back to non testing value
kderusso a237dda
Update DynamicMappingTests
kderusso 20ce7ea
Make dims param updateable
kderusso 4a5aa54
Cleanup
kderusso 37cc28f
Spotless
kderusso 2de801a
Fix some tests
kderusso 4ddc64a
Fix yaml test
kderusso 05cc248
Fix dims exception text
kderusso 9e508e6
Update docs/changelog/98512.yaml
kderusso 09a3a96
Update changelog entry
kderusso f5353cc
Version check before post processing dynamic mappers
kderusso 42e79fd
Spotless
kderusso b1c8c51
Add additional yaml test cases
kderusso 0f89350
Add one more case
kderusso c1370c6
Exclude fields mapped from templates from being dynamically mapped as…
kderusso f17082c
Make param final
kderusso 0007fc3
PR feedback
kderusso f4b22bc
Move postProcessDynamicMappers from context to live in DocumentParser…
kderusso 5d3dfd0
Spotless
kderusso 115b6d5
Update dense_vector mapping docs
kderusso ff95ff9
Dynamically map dims for all use cases
kderusso 756feb0
Whitespace
kderusso ebd9b44
Add subobject test
kderusso 88f2bfb
Refactor dynamicMappers to be a Map<String,List<Mapper>>
kderusso f8cf0d3
Fix timeout
kderusso b814adb
Cleanup
kderusso 2b42034
Spotless
kderusso e0fa759
Cleanup
kderusso 1cccc2d
Committing test authored by @benwtrent
kderusso 676d343
Committing working subobject before cleanup
kderusso ad0be33
Cleanup
kderusso 71918af
Spotless
kderusso 8934f8e
Fix typos in yaml test
kderusso 84676ad
PR feedback
kderusso 49f4577
PR feedback
kderusso 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,6 @@ | ||
| pr: 98512 | ||
| summary: Automatically map float arrays of lengths 128 - 2048 as dense_vector | ||
| area: Application | ||
| type: feature | ||
| issues: | ||
| - 97532 |
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
494 changes: 494 additions & 0 deletions
494
...lRestTest/resources/rest-api-spec/test/search.vectors/60_dense_vector_dynamic_mapping.yml
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.
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.