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

Fix fielddata handling for the _parent field. #12418

Merged
merged 1 commit into from Jul 23, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Jul 23, 2015

Change #12371 broke fielddata on the _parent child for indices created before
2.0. This pull request adds back caching of the _parent fielddata for indices
created before 2.0 and cleans some related stuff. For instance
DocumentTypeListener doesn't need to take care of removed mappings anymore since
mappings can't be removed in 2.0.

Change elastic#12371 broke fielddata on the `_parent` child for indices created before
2.0. This pull request adds back caching of the `_parent` fielddata for indices
created before 2.0 and cleans some related stuff. For instance
DocumentTypeListener doesn't need to take care of removed mappings anymore since
mappings can't be removed in 2.0.
@@ -232,16 +243,6 @@ public void beforeCreate(DocumentMapper mapper) {
}

@Override
public void afterRemove(DocumentMapper mapper) {
Copy link
Member

Choose a reason for hiding this comment

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

good that we partially remove this logic!

@martijnvg
Copy link
Member

Left one question. LGTM

jpountz added a commit that referenced this pull request Jul 23, 2015
Fix fielddata handling for the `_parent` field.
@jpountz jpountz merged commit 73c0cd5 into elastic:master Jul 23, 2015
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Parent/Child labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants