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

Text search is not working if the search string contains "all" word

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.8
    • Component/s: Text Search
    • Labels:
    • Windows

      I am using mongodb 2.4.8.

      > db.thread_data.runCommand("text", {search : "all"});

      {
      "queryDebugString" : "||||||",
      "language" : "english",
      "results" : [ ],
      "stats" :

      { "nscanned" : 0, "nscannedObjects" : 0, "n" : 0, "nfound" : 0, "timeMicros" : 64 }

      ,
      "ok" : 1
      }

      -> thread_data is a collection, which is text indexed.
      -> {search : "all"} here we are searching all the documents of thread_data where "all" word is present
      -> In thread_data collection "all" word is present in the document but it is not present in the results.
      -> From the documentation the search word will be in the "queryDebugString" of the output. but it is not happening.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mailtoranjitpatra@gmail.com Ranjit Patra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: