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

Limit multi fields to relevant settings #11053

Closed
rjernst opened this issue May 8, 2015 · 6 comments
Closed

Limit multi fields to relevant settings #11053

rjernst opened this issue May 8, 2015 · 6 comments
Labels
>enhancement good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@rjernst
Copy link
Member

rjernst commented May 8, 2015

Multi fields are more limited than regular fields. They cannot be object or nested types. There are also other settings like copy_to or include_in_all (any others?) that should not work. We should enforce this by rejecting these settings when parsed within a multi field.

@clintongormley
Copy link
Contributor

+1

@clintongormley clintongormley added >enhancement good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types labels Jan 18, 2016
@clintongormley
Copy link
Contributor

copy_to no longer works but include_in_all, fields and probably others do work - for clarity these should throw an exception

@paregos
Copy link

paregos commented Mar 22, 2017

It looks like copy_to and include_in_all no longer work, is there a list of other fields that shouldn't work?
Sorry if I misunderstood your comment but did you mean if the propName is fields within a multiField it should be rejected like if the propName is include_in_all within a multiField?

Relevant file - https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/index/mapper/TypeParsers.java

@javanna
Copy link
Member

javanna commented Mar 16, 2018

@elastic/es-search-aggs

@jtibshirani
Copy link
Contributor

jtibshirani commented Apr 15, 2019

It looks like almost all options that should be rejected now are:

The last option that we may want to reject is fields, which would mean the user is defining multifields within a multifield. Although it seems a bit unusual, this is currently allowed and appears to work as expected. I wonder if we should just continue to allow the fields option, as it gives some flexibility without adding much complexity.

@jtibshirani
Copy link
Contributor

After discussing internally, we decided we'd like to deprecate + remove support for chained multifields. I filed #41267 to track the issue and will close out this one.

@javanna javanna added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

5 participants