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

diacriticSensitive question

    XMLWordPrintable

Details

    • Question
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.4.5
    • None
    • Querying
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: