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

Delimiters are indexed in text indexes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.5
    • 3.1.2
    • Text Search
    • Fully Compatible
    • ALL
    • Platform 5 06/26/16

    Description

      This bug only affects recent 3.1.x versions and not 3.0.

      Master:

      > db.fts.drop();
       
      > db.fts.ensureIndex({a: 'text'});
      // The index is created
       
      > db.fts.insert({a: 'hello.world'});
      WriteResult({ "nInserted" : 1 })
       
      > db.fts.validate(true).keysPerIndex;
      { "test.fts.$_id_" : 1, "test.fts.$a_text" : 3 }
      

      3.0.3:

      > db.fts.drop();
       
      > db.fts.ensureIndex({a: 'text'});
      // The index is created
       
      > db.fts.insert({a: 'hello.world'});
      WriteResult({ "nInserted" : 1 })
       
      > db.fts.validate(true).keysPerIndex;
      { "test.fts.$_id_" : 1, "test.fts.$a_text" : 2 }
      

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: