Trigger insert in another index on insert/update into this index
This post has NOT been accepted by the mailing list yet.
This post was updated on .
The use case is to maintain a separate index which at all times holds the latest value of timeseries data. The script would be able to insert data into another index with _id that is made up of specific fields values from the first, so that it is over written each time and only one copy of the unique set of data and last value is stored.
The question - Is it possible to run a script in an index, on insert, such that it also inserts a data/document in another index?
This would be similar operation as Triggers in SQL.