elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.04k stars 24.51k forks source link

Field alias updates are not reflected in percolator queries. #37212

Open jtibshirani opened 5 years ago

jtibshirani commented 5 years ago

We currently allow the path of a field alias to be changed through a mapping update. This interacts poorly with percolator queries, as seen in the following gist where changing the path of an alias causes a percolator query to no longer match as expected: https://gist.github.com/jtibshirani/c86b5533b1b4d3ab83fb44280e4817b9. The issue is especially tricky because updating a field alias can update the actual field type (say from keyword to long), which may affect how percolator indexes the query.

This bug raises a larger question: do we want to allow the path of a field alias to change, as is currently implemented?

Relates to #36418, which discusses the possibility of deleting field aliases.

elasticmachine commented 5 years ago

Pinging @elastic/es-search

jpountz commented 5 years ago

We discussed this issue in the search meeting and agreed to either:

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine commented 1 month ago

Pinging @elastic/es-search-foundations (Team:Search Foundations)