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

Reencode transformed result with same xcontent #8974

Closed
wants to merge 1 commit into from

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Dec 16, 2014

When I originally wrote the transform feature I didn't think that the
XContentType of the reencoded source mattered. It actually matters because
payloads for the completion suggester are stored and returned exactly
as encoded by this XContentType.

This revision changes the transform feature from always reencoding with smile
to always reencoding with the provided XContentType to support the completion
suggester.

Closes #8959

When I originally wrote the transform feature I didn't think that the
XContentType of the reencoded source mattered.  It actually matters because
payloads for the completion suggester are stored and returned exactly
as encoded by this XContentType.

This revision changes the transform feature from always reencoding with smile
to always reencoding with the provided XContentType to support the completion
suggester.

Closes elastic#8959
@clintongormley clintongormley added review >bug :Search/Mapping Index mappings, including merging and defining field types v1.4.3 v1.5.0 v2.0.0-beta1 labels Dec 17, 2014
@jpountz
Copy link
Contributor

jpountz commented Dec 19, 2014

The change looks good, I think it's better to reuse the same xcontent. I'll merge it next week.

However this behaviour of the completion suggester looks like a bug to me, maybe we need to fix it separately...

@nik9000
Copy link
Member Author

nik9000 commented Dec 19, 2014

@jpountz I filed it as #8975 and attached a gist that makes it better but isn't tested.

@jpountz
Copy link
Contributor

jpountz commented Dec 19, 2014

Perfect, thanks for the pointer!

@jpountz
Copy link
Contributor

jpountz commented Dec 22, 2014

Merged, thanks @nik9000 !

@jpountz jpountz closed this Dec 22, 2014
@jpountz jpountz removed the review label Dec 22, 2014
@clintongormley clintongormley changed the title Reencode transformed result with same xcontent Mapping: Reencode transformed result with same xcontent Feb 10, 2015
@clintongormley clintongormley changed the title Mapping: Reencode transformed result with same xcontent Reencode transformed result with same xcontent Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Mapping Index mappings, including merging and defining field types v1.4.3 v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transform script and completion suggest payload - malformed JSON output
3 participants