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

Remove the dependecy on IndexFielddataService from MapperService. #12371

Merged
merged 1 commit into from Jul 22, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Jul 21, 2015

This dependency was used in order for mapping updates that change the fielddata
format to take effect immediately. And the way it worked was by clearing the
cache of fielddata instances that were already loaded. However, we do not need
to cache the already loaded (logical) fielddata instances, they are cheap to
regenerate. Note that the fielddata caches are still kept around so that we
don't keep on rebuilding costly (physical) fielddata values.

This dependency was used in order for mapping updates that change the fielddata
format to take effect immediately. And the way it worked was by clearing the
cache of fielddata instances that were already loaded. However, we do not need
to cache the already loaded (logical) fielddata instances, they are cheap to
regenerate. Note that the fielddata _caches_ are still kept around so that we
don't keep on rebuilding costly (physical) fielddata values.
@jpountz jpountz added >enhancement v2.0.0-beta1 :Search/Mapping Index mappings, including merging and defining field types :Fielddata labels Jul 21, 2015
@rjernst
Copy link
Member

rjernst commented Jul 21, 2015

LGTM!

jpountz added a commit that referenced this pull request Jul 22, 2015
Remove the dependecy on IndexFielddataService from MapperService.
@jpountz jpountz merged commit f8b741d into elastic:master Jul 22, 2015
@clintongormley clintongormley removed the :Search/Mapping Index mappings, including merging and defining field types label Jul 23, 2015
jpountz added a commit to jpountz/elasticsearch that referenced this pull request Jul 23, 2015
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.
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Fielddata labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants