Delimiters are indexed in text indexes

XMLWordPrintableJSON

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

      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
            Reporter:
            Kamran K. (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: