-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove support for sparse vectors. #48781
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
Conversation
|
Pinging @elastic/es-search (:Search/Search) |
630e4e3 to
3e83ba5
Compare
a300dcb to
7e30732
Compare
7e30732 to
e8fd8a1
Compare
e8fd8a1 to
0242a5e
Compare
|
@mayya-sharipova this is now ready for a review (after some initial issues with test failures). |
|
@elasticmachine run elasticsearch-ci/packaging-sample-matrix |
mayya-sharipova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtibshirani Thanks Julie, very nice approach for the bwc to keep just a definition of the type.
| * @deprecated The sparse_vector type was deprecated in 7.x and removed in 8.0. This mapper | ||
| * definition only exists so that 7.x indices can be read without error. | ||
| */ | ||
| @Deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be add TODO: to remove this class in 9.0
| assertThat(e.getCause(), instanceOf(IllegalArgumentException.class)); | ||
| assertThat(e.getCause().getMessage(), containsString( | ||
| "dimension number must be a non-negative integer value not exceeding [65535], got [-50]")); | ||
| public void testSparseVectorWith7xIndex() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely written test!
Follow up to #48368. This PR removes support for
sparse_vectoron newindices. On 7.x indices a
sparse_vectorcan still be defined, but it is notpossible to index or search on it.