Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-904

Text search index creation failure in legacy index creation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: 1.1.11
    • Component/s: None
    • None

      mongoc-collection.c

       761    if (opt->default_language != def_opt->default_language) {                         
       762       bson_append_utf8 (&insert,                                                     
       763                         "defaultLanguage", -1,                                       
       764                         opt->default_language, -1);                                  
       765    }                                                                                 
       766                                                                                      
       767    if (opt->language_override != def_opt->language_override) {                       
       768       bson_append_utf8 (&insert,                                                     
       769                         "languageOverride", -1,                                      
       770                         opt->language_override, -1);                                 
       771    }                                                                                 
       772                                                                               
      

      The options are called default_language and language_override not camelCased

      http://docs.mongodb.org/manual/reference/command/createIndexes/#dbcmd.createIndexes

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: