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

Avoid unnecessary utf8 conversion when creating ScriptDocValues for a string field. #9557

Merged
merged 1 commit into from Feb 4, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Feb 4, 2015

This regression was introduced in #6908: the conversion from RandomAccessOrds
to SortedBinaryDocValues goes through Strings while both impls actually work
on BytesRef, so the SortedBinaryDocValues instance could directly return the
BytesRefs returned by the RandomAccessOrds.

…lues for a string field.

This regression was introduced in elastic#6908: the conversion from RandomAccessOrds
to SortedBinaryDocValues goes through Strings while both impls actually work
on BytesRef, so the SortedBinaryDocValues instance could directly return the
BytesRefs returned by the RandomAccessOrds.

Close elastic#9306
@jpountz
Copy link
Contributor Author

jpountz commented Feb 4, 2015

Close #9306

@s1monw
Copy link
Contributor

s1monw commented Feb 4, 2015

LGTM

@jpountz jpountz merged commit 8b76cd7 into elastic:master Feb 4, 2015
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed review labels Mar 19, 2015
@clintongormley clintongormley changed the title Internal: Avoid unnecessary utf8 conversion when creating ScriptDocValues for a string field. Avoid unnecessary utf8 conversion when creating ScriptDocValues for a string field. Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v1.4.3 v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants