File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
docs/reference/mapping/types Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ There are a few restrictions on the target of an alias:
6868Additionally, a field alias can only have one target. This means that it is not possible to use a
6969field alias to query over multiple target fields in a single clause.
7070
71+ An alias can be changed to refer to a new target through a mappings update. A known limitation is that
72+ if any stored percolator queries contain the field alias, they will still refer to its original target.
73+ More information can be found in the <<percolator, percolator documentation>>.
74+
7175[[unsupported-apis]]
7276==== Unsupported APIs
7377
Original file line number Diff line number Diff line change @@ -743,3 +743,11 @@ The script inside a `script` query can only access doc values fields. The `perco
743743into an in-memory index. This in-memory index doesn't support stored fields and because of that the `_source` field and
744744other stored fields are not stored. This is the reason why in the `script` query the `_source` and other stored fields
745745aren't available.
746+
747+ [float]
748+ ===== Field aliases
749+
750+ Percolator queries that contain <<alias, field aliases>> may not always behave as expected. In particular, if a
751+ percolator query is registered that contains a field alias, and then that alias is updated in the mappings to refer
752+ to a different field, the stored query will still refer to the original target field. To pick up the change to
753+ the field alias, the percolator query must be explicitly reindexed.
You can’t perform that action at this time.
0 commit comments