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

FTS: Misspelled parameter does not give an error

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.3.2
    • Component/s: Text Search
    • Labels:
      None
    • ALL
    • Hide

      See above example.

      Show
      See above example.

      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.

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

              Created:
              Updated:
              Resolved: