Skip to content

Remove transform#13657

Merged
nik9000 merged 1 commit intoelastic:masterfrom
nik9000:remove_transport
Oct 30, 2015
Merged

Remove transform#13657
nik9000 merged 1 commit intoelastic:masterfrom
nik9000:remove_transport

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Sep 18, 2015

Removes the mapping transform feature which when used made debugging very
difficult. Users should transform their documents on the way into
Elasticsearch rather than having Elasticsearch do it.

Closes #12674

@nik9000 nik9000 added review :Search Foundations/Mapping Index mappings, including merging and defining field types v2.1.0 >deprecation v5.0.0-alpha1 labels Sep 18, 2015
@nik9000
Copy link
Member Author

nik9000 commented Sep 18, 2015

Ping @rjernst for review.

@jpountz
Copy link
Contributor

jpountz commented Sep 24, 2015

The change looks good to me, maybe we should document it (unless it already is?) It's a bit weird to me to drop a feature on a minor release. Is it feasible to either deprecate for now and only remove in 3.0 or backport the change to 2.0 since it's not been released yet? cc @clintongormley

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the entire "mapping" ScriptContext can be removed?

@rjernst
Copy link
Member

rjernst commented Sep 24, 2015

Also LGTM (just a couple extra things I think can be removed).

I think 3.0 is the correct place to put this, since we missed the window to get this into 2.0. Heaver mappings cleanup will just have to wait a little longer. :) But let's make sure to deprecate in 2.1.

@nik9000
Copy link
Member Author

nik9000 commented Sep 24, 2015

I think 3.0 is the correct place to put this, since we missed the window to get this into 2.0. Heaver mappings cleanup will just have to wait a little longer. :) But let's make sure to deprecate in 2.1.

We blasted the documentation in 2.0, IIRC. I'm pretty ambivalent about when it gets removed but @clintongormley wanted to see it gone as soon as we could.

@clintongormley
Copy link
Contributor

Question for me is: what features/improvements does mapping transform block? eg highlighting? are there things we want to get in for 2.x which are blocked?

@mattjanssen
Copy link
Contributor

We just built and deployed a large platform on 2.0 that uses these transforms to extract a geo_point from a geo_shape. We need the geo_point to do distance sorting. We need the geo_shape to do spatial queries.

We assumed it was a safe feature because it hadn't been deprecated. We didn't even notice it wasn't in the latest docs.

We use mongo-connector to ship the data. We don't want to store the lon/lat twice in our DB just to facilitate Elasticsearch. I guess we should rewrite mongo-connector to do transforms?

@lukas-vlcek
Copy link
Contributor

Hmm... I liked mapping transformations.

@jpountz
Copy link
Contributor

jpountz commented Oct 9, 2015

Maybe node ingest (#14047) removes the need for transform? So we could remove in 3.0 as @rjernst suggested.

@nik9000 nik9000 removed the v2.1.0 label Oct 15, 2015
@nik9000
Copy link
Member Author

nik9000 commented Oct 15, 2015

Maybe node ingest (#14047) removes the need for transform? So we could remove in 3.0 as @rjernst suggested.

Right then. Rebasing onto 3.0.

@nik9000
Copy link
Member Author

nik9000 commented Oct 15, 2015

Ok - @rjernst, I think this is ready for another round of review when you are ready for it.

@rjernst
Copy link
Member

rjernst commented Oct 26, 2015

LGTM

@adichad
Copy link

adichad commented Oct 30, 2015

I have been using mapping transform native (java) scripts all the way up to 1.7.x in production. never saw a deprecation warning in code or documentation online though. In 2.0 documentation the whole section is not present. the migration tool also did not warn about the transform script reference being present in the type mappings.

Please provide better documentation than throwing a 404 in 2.x documentation at least stating whether this is deprecated or altogether removed in 2.x or not.

In the meanwhile I will look into 2.0 code to see whether I need to incur the effort to move this out now or whether it can wait a month or so.

@rjernst
Copy link
Member

rjernst commented Oct 30, 2015

@adichad Mapping transforms still exist in 2.x. This PR is to remove them from master (3.0), and a follow up will deprecate them in 2.x.

nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Oct 30, 2015
Mapping transform was deprecated in 2.0.0 but the docs were removed. This
adds them back with deprecation warnings.

Relates to elastic#13657
Removes the mapping transform feature which when used made debugging very
difficult. Users should transform their documents on the way into
Elasticsearch rather than having Elasticsearch do it.

Closes elastic#12674
@nik9000
Copy link
Member Author

nik9000 commented Oct 30, 2015

Squashed, rebased, and merging to just 3.0.0.

nik9000 added a commit that referenced this pull request Oct 30, 2015
@nik9000 nik9000 merged commit c521b27 into elastic:master Oct 30, 2015
@nik9000 nik9000 removed the review label Oct 30, 2015
nik9000 added a commit that referenced this pull request Oct 30, 2015
Mapping transform was deprecated in 2.0.0 but the docs were removed. This
adds them back with deprecation warnings.

Relates to #13657
nik9000 added a commit that referenced this pull request Oct 30, 2015
Mapping transform was deprecated in 2.0.0 but the docs were removed. This
adds them back with deprecation warnings.

Relates to #13657
@niemyjski
Copy link
Contributor

Removing this feature really made life tough for us... Do you have any work around for this?

@niemyjski
Copy link
Contributor

cc @nik9000 @rjernst @clintongormley

@niemyjski
Copy link
Contributor

@jasontedor
Copy link
Member

@niemyjski
Copy link
Contributor

From what I understand there are issues with ingest pipelines around bulk operations??

@nik9000
Copy link
Member Author

nik9000 commented Oct 12, 2016

The idea is to replace it with the ingest feature. It isn't the same as the
modifications it makes to the source are saved in the source rather than
just used for indexing.

It was a neat feature but ended up breaking more folks than it helped
because it didn't work well with things like highlighting. It made
debugging indexing problems a nightmare.

On Oct 11, 2016 9:15 PM, "Jason Tedor" notifications@github.com wrote:

It's on the page that you linked to: https://www.elastic.co/guide/
en/elasticsearch/reference/5.0/breaking_50_mapping_changes.
html#_source_transform_removed


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13657 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANLojBAJJ9GLW3QOex07oRQF5yc-usZks5qzDTHgaJpZM4F_5pF
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Search Foundations/Mapping Index mappings, including merging and defining field types v5.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants