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

Add enabled flag for _field_names to replace disabling through index:no #9893

Merged
merged 1 commit into from Feb 26, 2015

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Feb 26, 2015

Almost all of our meta fields that allow enabling/disabling have an enabled
setting. However, _field_names is enabled by default, and disabling
requires setting index=no. This change adds a flag similar to that
with other meta fields.

@jpountz
Copy link
Contributor

jpountz commented Feb 26, 2015

LGTM

…ugh index=no

Almost all of our meta fields that allow enabling/disabling have an `enabled`
setting.  However, _field_names is enabled by default, and disabling
requires setting `index=no`.  This change adds a flag similar to that
with other meta fields.

closes elastic#9893
@rjernst rjernst added v2.0.0-beta1 v1.5.0 :Search/Mapping Index mappings, including merging and defining field types labels Feb 26, 2015
@rjernst rjernst merged commit 257cdcd into elastic:master Feb 26, 2015
rjernst added a commit that referenced this pull request Feb 26, 2015
…ugh index=no

Almost all of our meta fields that allow enabling/disabling have an `enabled`
setting.  However, _field_names is enabled by default, and disabling
requires setting `index=no`.  This change adds a flag similar to that
with other meta fields.

closes #9893

Conflicts:
	src/main/java/org/elasticsearch/index/mapper/internal/FieldNamesFieldMapper.java
@rjernst rjernst deleted the fix/field-names-enabled branch March 24, 2015 03:09
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Mar 25, 2015
In elastic#9893, an enabled flag was added for _field_names.  However,
backcompat for indexes created before 1.3.0 (when _field_names
was added) was lost. This change corrects the mapper
to always be disabled when used with older indexes that
cannot have _field_names.

closes elastic#10268
rjernst added a commit that referenced this pull request Mar 25, 2015
In #9893, an enabled flag was added for _field_names.  However,
backcompat for indexes created before 1.3.0 (when _field_names
was added) was lost. This change corrects the mapper
to always be disabled when used with older indexes that
cannot have _field_names.

closes #10268
rjernst added a commit that referenced this pull request Mar 25, 2015
In #9893, an enabled flag was added for _field_names.  However,
backcompat for indexes created before 1.3.0 (when _field_names
was added) was lost. This change corrects the mapper
to always be disabled when used with older indexes that
cannot have _field_names.

closes #10268
@clintongormley clintongormley changed the title Mappings: Add enabled flag for _field_names to replace disabling through index=no Add enabled flag for _field_names to replace disabling through index:no Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
In elastic#9893, an enabled flag was added for _field_names.  However,
backcompat for indexes created before 1.3.0 (when _field_names
was added) was lost. This change corrects the mapper
to always be disabled when used with older indexes that
cannot have _field_names.

closes elastic#10268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Mapping Index mappings, including merging and defining field types v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants