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

Delimiters are indexed in text indexes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.5
    • Affects Version/s: 3.1.2
    • Component/s: Text Search
    • Labels:
    • Fully Compatible
    • ALL
    • Platform 5 06/26/16

      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 }
      

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

              Created:
              Updated:
              Resolved: