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

FTS: Misspelled parameter does not give an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Text Search
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      See above example.

      Show
      See above example.

      Description

      Problem:
      The following statement execute and does not give an error, despite "projection" being mis-spelled

      > db.InformationAsset.runCommand( "text", { search: "Titanic", projetion: {_id:0 } } )

      Workaround:
      None - but you see that the results are not constrained by the projection.

      Solution:
      Throw an error if the parameters and not understood.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              alvin Alvin Richards (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: