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

Mappings: Remove support for field access by short name #9670

Closed
wants to merge 3 commits into from

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Feb 12, 2015

When multiple fields under object fields share the same name, accessing
by short name is ambiguous. This removes support for short names,
always requiring the full name when used in queries.

closes #8872

Note: I have an existing todo that I intend to commit, which is to in the future rename the name() function on doc field mappers. For now, it is just changed to be implemented with fullName. I did not want to litter this PR with a largish change (55 usages).

When multiple fields under object fields share the same name, accessing
by short name is ambiguous.  This removes support for short names,
always requiring the full name when used in queries.

closes elastic#8872
@rjernst rjernst added :Search/Mapping Index mappings, including merging and defining field types v2.0.0-beta1 review and removed v2.0.0-beta1 labels Feb 12, 2015
@jpountz
Copy link
Contributor

jpountz commented Feb 12, 2015

I think this deserves an entry in the 2.0 migration guide? Otherwise LGTM

@rjernst
Copy link
Member Author

rjernst commented Feb 12, 2015

@jpountz Good point, I've added an entry in the migration guide. Can you take a quick look?

@jpountz
Copy link
Contributor

jpountz commented Feb 12, 2015

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search/Mapping Index mappings, including merging and defining field types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Require the full path (without type) for field lookups
2 participants