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

Moved the decision to load p/c fielddata eagerly to a better place. #5569

Closed

Conversation

martijnvg
Copy link
Member

No description provided.

@@ -767,15 +768,8 @@ public TerminationHandle warm(final IndexShard indexShard, IndexMetaData indexMe
if (fieldDataType == null) {
continue;
}
if (fieldMapper instanceof ParentFieldMapper) {
ParentFieldMapper parentFieldMapper = (ParentFieldMapper) fieldMapper;
if (!parentFieldMapper.active()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

there is no need to check that the mapper is active anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because if ParentFieldMapper is not active then the loading is always lazy and if it is active then it is always eager (that is what the change does in ParentFieldMapper).

@jpountz
Copy link
Contributor

jpountz commented Apr 3, 2014

LGTM, this is a nice cleanup!

@martijnvg martijnvg closed this in f389c66 Apr 3, 2014
@martijnvg martijnvg deleted the improvements/pc-eager-loading branch May 18, 2015 23:32
@clintongormley clintongormley added :Fielddata and removed :Cache :Core/Infra/Core Core issues without another label :Search/Mapping Index mappings, including merging and defining field types :Search/Search Search-related issues that do not fall into other categories labels Jun 7, 2015
@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 v1.2.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants