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

Allow $text within a lookup pipeline in the sharded case

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: