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

Compound textual index with nested fields does not return data

    XMLWordPrintable

    Details

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

      Query:
      find({"grades.levels" : {$in : [1]}, $text: {$search: "123"}} )

      Data model:
      { "fileName" : "123", "grades" :

      { "levels" : [1, 2, 3] }

      }

      Non-working index: (not returning anything)

      { "fileName" : "text", "grades.levels" : 1}

      Working index:

      { "fileName" : "text", "grades" : 1}
      Show
      Query: find({"grades.levels" : {$in : [1] }, $text: {$search: "123"}} ) Data model: { "fileName" : "123", "grades" : { "levels" : [1, 2, 3] } } Non-working index: (not returning anything) { "fileName" : "text", "grades.levels" : 1} Working index: { "fileName" : "text", "grades" : 1}

      Description

      When I have a compound textual index with a nested field, my query does not return any expected data (not just not using the index)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: