Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38996

Allow $text within a lookup pipeline in the sharded case

    XMLWordPrintable

Details

    • ALL

    Description

      Currently, when doing a sharded lookup pipeline with a $text stage in the subpipeline, we will hit the following error:

      {{"errmsg" : "Should never call getNext on a $match stage with $text clause",  "code" : 17309,  "codeName" : "Location17309",  "operationTime" : Timestamp(1547497994, 58),  "$clusterTime" : \{  "clusterTime" : Timestamp(1547497994, 58),  "signature" : {  "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),  "keyId" : NumberLong(0)  }  }}}
      

      This comes from DocumentSourceMatch::getNext. 

       

      Part of this ticket will be reenabling jstests/aggregation/sources/match/text_search_requires_index.js and jstests/aggregation/sources/lookup/lookup_contains_text.js

      Attachments

        Issue Links

          Activity

            People

              backlog-server-query Backlog - Query Team (Inactive)
              brigitte.lamarche@mongodb.com Brigitte Lamarche (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: