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 _field_names to be disabled on pre 1.3.0 indexes #10268

Merged
merged 1 commit into from Mar 25, 2015

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented 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.

@rjernst rjernst added >bug v2.0.0-beta1 :Search/Mapping Index mappings, including merging and defining field types v1.6.0 v1.5.1 labels Mar 25, 2015
@rmuir
Copy link
Contributor

rmuir commented Mar 25, 2015

looks good

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 rjernst merged commit ae41d1e into elastic:master Mar 25, 2015
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
rjernst added a commit that referenced this pull request Mar 25, 2015
rjernst added a commit that referenced this pull request Mar 25, 2015
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Apr 27, 2015
The _field_names field was fixed in 1.5.1 (elastic#10268) to correctly be
disabled for indexes before 1.3.0.  However, only the exists filter
was updated to check this enabled flag on 1.x/1.5. The missing
filter on those branches still checks the field type to see if it
is indexed, which causes the filter to always try and use
the _field_names field for those old indexes.

This change adds a test to the old index tests for missing filter.

Note: Something alarming about this test is it does not always fail.
If I narrow down to run just on say 1.1.0, it fails most of the time,
but not always. @jpountz Maybe you have an idea on why this might be?
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Apr 28, 2015
The _field_names field was fixed in 1.5.1 (elastic#10268) to correctly be
disabled for indexes before 1.3.0.  However, only the exists filter
was updated to check this enabled flag on 1.x/1.5. The missing
filter on those branches still checks the field type to see if it
is indexed, which causes the filter to always try and use
the _field_names field for those old indexes.

This change adds a test to the old index tests for missing filter.
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Apr 28, 2015
The _field_names field was fixed in 1.5.1 (elastic#10268) to correctly be
disabled for indexes before 1.3.0.  However, only the exists filter
was updated to check this enabled flag on 1.x/1.5. The missing
filter on those branches still checks the field type to see if it
is indexed, which causes the filter to always try and use
the _field_names field for those old indexes.

This change adds a test to the old index tests for missing filter.

closes elastic#10842
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Apr 28, 2015
The _field_names field was fixed in 1.5.1 (elastic#10268) to correctly be
disabled for indexes before 1.3.0.  However, only the exists filter
was updated to check this enabled flag on 1.x/1.5. The missing
filter on those branches still checks the field type to see if it
is indexed, which causes the filter to always try and use
the _field_names field for those old indexes.

This change adds a test to the old index tests for missing filter.

closes elastic#10842
rjernst added a commit that referenced this pull request Apr 28, 2015
The _field_names field was fixed in 1.5.1 (#10268) to correctly be
disabled for indexes before 1.3.0.  However, only the exists filter
was updated to check this enabled flag on 1.x/1.5. The missing
filter on those branches still checks the field type to see if it
is indexed, which causes the filter to always try and use
the _field_names field for those old indexes.

This change adds a test to the old index tests for missing filter.

closes #10842
rjernst added a commit that referenced this pull request Apr 28, 2015
The _field_names field was fixed in 1.5.1 (#10268) to correctly be
disabled for indexes before 1.3.0.  However, only the exists filter
was updated to check this enabled flag on 1.x/1.5. The missing
filter on those branches still checks the field type to see if it
is indexed, which causes the filter to always try and use
the _field_names field for those old indexes.

This change adds a test to the old index tests for missing filter.

closes #10842
@clintongormley clintongormley changed the title Mappings: Fix _field_names to be disabled on pre 1.3.0 indexes Fix _field_names to be disabled on pre 1.3.0 indexes 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
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
@rjernst rjernst deleted the fix/field-names-bwc branch September 18, 2020 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Mapping Index mappings, including merging and defining field types v1.5.1 v1.6.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants