|
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!
|