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

diacriticSensitive question

    XMLWordPrintable

    Details

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

      Description

      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!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: