@@ -57,7 +57,6 @@ static const std::string recordIdName = "recordId";
5757static const std::string indexKeyName = " indexKey" ;
5858static const std::string sortKeyName = " sortKey" ;
5959static const std::string searchScoreDetailsName = " searchScoreDetails" ;
60- static const std::string searchRootDocumentIdName = " searchRootDocumentId" ;
6160static const std::string searchSequenceTokenName = " searchSequenceToken" ;
6261static const std::string timeseriesBucketMinTimeName = " timeseriesBucketMinTime" ;
6362static const std::string timeseriesBucketMaxTimeName = " timeseriesBucketMaxTime" ;
@@ -88,7 +87,6 @@ static const StringMap<MetaType> kMetaNameToMetaType = {
8887 {timeseriesBucketMinTimeName, MetaType::kTimeseriesBucketMinTime },
8988 {timeseriesBucketMaxTimeName, MetaType::kTimeseriesBucketMaxTime },
9089 {scoreDetailsName, MetaType::kScoreDetails },
91- {searchRootDocumentIdName, MetaType::kSearchRootDocumentId },
9290 {streamName, MetaType::kStream },
9391 {changeStreamControlEventName, MetaType::kChangeStreamControlEvent },
9492};
@@ -110,7 +108,6 @@ static const std::unordered_map<MetaType, StringData> kMetaTypeToMetaName = {
110108 {MetaType::kTimeseriesBucketMinTime , timeseriesBucketMinTimeName},
111109 {MetaType::kTimeseriesBucketMaxTime , timeseriesBucketMaxTimeName},
112110 {MetaType::kScoreDetails , scoreDetailsName},
113- {MetaType::kSearchRootDocumentId , searchRootDocumentIdName},
114111 {MetaType::kStream , streamName},
115112 {MetaType::kChangeStreamControlEvent , changeStreamControlEventName},
116113};
@@ -200,10 +197,6 @@ void DocumentMetadataFields::setMetaFieldFromValue(MetaType type, Value val) {
200197 assertType (BSONType::object);
201198 setSearchScoreDetails (val.getDocument ().toBson ());
202199 break ;
203- case DocumentMetadataFields::kSearchRootDocumentId :
204- assertType (BSONType::oid);
205- setSearchRootDocumentId (val.getOid ());
206- break ;
207200 case DocumentMetadataFields::kTimeseriesBucketMinTime :
208201 assertType (BSONType::date);
209202 setTimeseriesBucketMinTime (val.getDate ());
@@ -312,9 +305,6 @@ void DocumentMetadataFields::mergeWith(const DocumentMetadataFields& other) {
312305 if (!hasSearchScoreDetails () && other.hasSearchScoreDetails ()) {
313306 setSearchScoreDetails (other.getSearchScoreDetails ());
314307 }
315- if (!hasSearchRootDocumentId () && other.hasSearchRootDocumentId ()) {
316- setSearchRootDocumentId (other.getSearchRootDocumentId ());
317- }
318308 if (!hasSearchSequenceToken () && other.hasSearchSequenceToken ()) {
319309 setSearchSequenceToken (other.getSearchSequenceToken ());
320310 }
@@ -372,9 +362,6 @@ void DocumentMetadataFields::copyFrom(const DocumentMetadataFields& other) {
372362 if (other.hasSearchScoreDetails ()) {
373363 setSearchScoreDetails (other.getSearchScoreDetails ());
374364 }
375- if (other.hasSearchRootDocumentId ()) {
376- setSearchRootDocumentId (other.getSearchRootDocumentId ());
377- }
378365 if (other.hasSearchSequenceToken ()) {
379366 setSearchSequenceToken (other.getSearchSequenceToken ());
380367 }
@@ -476,10 +463,6 @@ void DocumentMetadataFields::serializeForSorter(BufBuilder& buf) const {
476463 buf.appendNum (static_cast <char >(MetaType::kSearchScoreDetails + 1 ));
477464 getSearchScoreDetails ().appendSelfToBufBuilder (buf);
478465 }
479- if (hasSearchRootDocumentId ()) {
480- buf.appendNum (static_cast <char >(MetaType::kSearchRootDocumentId + 1 ));
481- buf.appendStruct (getSearchRootDocumentId ());
482- }
483466 if (hasSearchSequenceToken ()) {
484467 buf.appendNum (static_cast <char >(MetaType::kSearchSequenceToken + 1 ));
485468 getSearchSequenceToken ().serializeForSorter (buf);
@@ -549,8 +532,6 @@ void DocumentMetadataFields::deserializeForSorter(BufReader& buf, DocumentMetada
549532 } else if (marker == static_cast <char >(MetaType::kSearchScoreDetails ) + 1 ) {
550533 out->setSearchScoreDetails (
551534 BSONObj::deserializeForSorter (buf, BSONObj::SorterDeserializeSettings ()));
552- } else if (marker == static_cast <char >(MetaType::kSearchRootDocumentId ) + 1 ) {
553- out->setSearchRootDocumentId (OID::from (buf.skip (OID::kOIDSize )));
554535 } else if (marker == static_cast <char >(MetaType::kTimeseriesBucketMinTime ) + 1 ) {
555536 out->setTimeseriesBucketMinTime (
556537 Date_t::fromMillisSinceEpoch (buf.read <LittleEndian<long long >>()));
@@ -631,8 +612,6 @@ const char* DocumentMetadataFields::typeNameToDebugString(DocumentMetadataFields
631612 return " text score" ;
632613 case DocumentMetadataFields::kSearchScoreDetails :
633614 return " $search score details" ;
634- case DocumentMetadataFields::kSearchRootDocumentId :
635- return " $search root document id" ;
636615 case DocumentMetadataFields::kTimeseriesBucketMinTime :
637616 return " timeseries bucket min time" ;
638617 case DocumentMetadataFields::kTimeseriesBucketMaxTime :
0 commit comments