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 |
---|---|---|---|
Optimisation in mongodb command , Fetch is taking too long | 5 | 1.0k | Jun 2024 |
Facing issue in using a schema in two microservices | 3 | 315 | Jun 2024 |
After MongoDB 3.x -> 7 upgrade: C Sharp Query uses wrong index and long running query is not logged as slowop | 1 | 241 | Jul 2024 |
Upgrade from Mongo 6 to 8 and hint becoming really slow | 0 | 290 | Dec 2024 |
MongoDB TTL Index. doesn’t delete old documents. | 4 | 109 | Jan 23 |