Filter out fields containing *
in their name from field_caps
#110007
Labels
Feature:Data Views
Data Views code and UI - index patterns before 8.0
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Currently you can have fields in Elasticsearch containing
*
as a name. Those fields though will not behave very well across ES APIs since the*
is treated as a wildcard in most APIs and thus will cause a wide range of problems, from e.g. us asking for date formatting on a field containing a*
will accidentally ask for date formatting on all fields matching that wild card, which might not all be date fields and thus throw errors.ES is considering disallowing fields containing
*
altogether: elastic/elasticsearch#76874Since that will still require people who might have run into that issue to require reindexing their data to get rid of those fields from the mapping, I wanted to discuss if we simply want to filter out fields containing
*
when reading the_field_caps
response (a simpleif (fieldName.includes('*')) return;
infield_caps_response.ts
).cc @nik9000
The text was updated successfully, but these errors were encountered: