Is it possible to match fullDocument
and fullDocumentBeforeChange
against a $text
constraint in the aggregation pipeline of a change stream definition (collection.watch
)?
I guess part of the answer lies in this bit: “Change streams cannot use indexes. MongoDB does not support creating indexes on the oplog collection.”, but I’d like to have a clearer answer: yes you cannot create indexes on the oplog, yes change streams supposedly are just a view of the oplog, but still, one could implement $text
queries on individual change stream events fullDocument
. Looks like a no to me, but please confirm.