Is it possible to match fullDocument
and fullDocumentBeforeChange
against a $text
constraint in the aggregation pipeline of a change stream definition (collection.watch
)?
Skip to main content
2 months later
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.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Generate ObjectID from Date in Aggregation? | 2 | 926 | Mar 2024 |
Does Mongo cache the whole index or just the parts that it needs to service a Mongo Query? | 6 | 496 | Jun 2024 |
Problem filtering an array, cond if field is null does not work | 2 | 68 | Oct 2024 |
Is it possible to discard and delete a batch after being loaded and processed by MongoDB? | 0 | 19 | Oct 2024 |
$convert int to binData fails | 1 | 23 | 18d |