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

diacriticSensitive question

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.5
    • Component/s: Querying
    • None
    • Query 2017-07-31, Query 2017-08-21

      Hi.
      This is my text index:

      db.test.createIndex({ 'description' : 'text' }, { default_language : 'spanish' })
      

      This is my document:

      db.test.find({ _id : 1 })
      { "_id" : 1, "description" : "Obtención de financiación" }
      

      These are my questions:

      db.test.find({ $text : { $search : 'Obtencion' } });
      { "_id" : 1, "description" : "Obtención de financiación" }
      > db.test.find({ $text : { $search : 'financiacion' } });
      >
      

      Why I do not receive the same document as a result of my last command?
      Why "diacriticSensitive : false" does not work when the searched word (financiacion) is not located at the very beginning of the field?
      Is this a issue or I do not understand something?
      ¡Thank you very much!

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            juanroy Juan Antonio Roy Couto
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: