Migrate from CodecServiceFactory to AdditionalCodecs (so the custom codecs could be used with k-nn, neutral-search, ... plugins) - #302
Conversation
Signed-off-by: Andriy Redko <drreta@gmail.com>
Signed-off-by: Andriy Redko <drreta@gmail.com>
|
Thanks @reta for the change. I just started following the changes in core. For my understanding:
Change LGTM otherwise wrt to the proposal share in the issue in core repository. |
|
Thanks @mgodwan !
To my understanding, when formats are overridden, there two options:
If I understand your question correctly, if the wrapping codec needs to have some in-depth, exact assumptions what the default codec is doing - yes, we need to make sure there is validation in place (the
So the default codec is not passed to Hope I answered your questions, thanks for looking! |
|
@mgodwan my apologies, I think I have better response to your question / concerns. There should be no issue with codec overriding SegmentInfosFormat, StoredFieldsFormat, however there are issues (unfortunately) when codecs are composed on top of / wrapping each other, like The issue with that is on the read side, when Lucene tries to read segments, it explicitly calls |
|
@sarthakaggarwal97 @andrross folks could you please help me to get this change in for 3.5? thank you |
There was a problem hiding this comment.
LGTM, I just checked the implementation wrt to recent changes in OpenSearch. Just a minor nit around comments. Thanks @reta
Signed-off-by: Andriy Redko <drreta@gmail.com>
Signed-off-by: Andriy Redko <drreta@gmail.com>
…odecs could be used with k-nn, neutral-search, ... plugins) (#302) * Include AdditionalCodecs argument to allow additional Codec registration Signed-off-by: Andriy Redko <drreta@gmail.com> * Migrate from CodecServiceFactory to AdditionalCodecs Signed-off-by: Andriy Redko <drreta@gmail.com> * Address code review comments Signed-off-by: Andriy Redko <drreta@gmail.com> * Fix BWC branch coordinates (2.x -> 2.19) Signed-off-by: Andriy Redko <drreta@gmail.com> --------- Signed-off-by: Andriy Redko <drreta@gmail.com> (cherry picked from commit ce7a577) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…odecs could be used with k-nn, neutral-search, ... plugins) (#302) * Include AdditionalCodecs argument to allow additional Codec registration Signed-off-by: Andriy Redko <drreta@gmail.com> * Migrate from CodecServiceFactory to AdditionalCodecs Signed-off-by: Andriy Redko <drreta@gmail.com> * Address code review comments Signed-off-by: Andriy Redko <drreta@gmail.com> * Fix BWC branch coordinates (2.x -> 2.19) Signed-off-by: Andriy Redko <drreta@gmail.com> --------- Signed-off-by: Andriy Redko <drreta@gmail.com> (cherry picked from commit ce7a577) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: Andriy Redko <drreta@gmail.com>
…odecs could be used with k-nn, neutral-search, ... plugins) (#302) (#303) * Include AdditionalCodecs argument to allow additional Codec registration * Migrate from CodecServiceFactory to AdditionalCodecs * Address code review comments * Fix BWC branch coordinates (2.x -> 2.19) --------- (cherry picked from commit ce7a577) Signed-off-by: Andriy Redko <drreta@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Include AdditionalCodecs argument to allow additional Codec registration
Migrate from CodecServiceFactory to AdditionalCodecs (so the custom codecs could be used with
k-nn,neutral-search, ... plugins)Related Issues
Followup on opensearch-project/OpenSearch#20411
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.