M
M
My joy2015-09-01 03:06:30
MongoDB
My joy, 2015-09-01 03:06:30

Mongodb has learned to work with full-text search without regard to the case of characters for the Russian language?

I noticed a problem that full-text index search is case -sensitive .
those. the entry containing "Hi" is not found by the command

db.collections.find( { $text: { $search: "привет", $language: "ru" } } )

And looking for Latin in any register. The problem is only with Cyrillic.
Or is there some parameter for this, or do I need to save Cyrillic documents initially in the same case all?
Mongo version 3.0.6
Thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2015-09-01
@t-alexashka

stackoverflow.com/questions/16001132/full-text-sea...
https://jira.mongodb.org/browse/SERVER-8423
Fix Version/s: 3.1.7

M
My joy, 2015-09-02
@t-alexashka

Thank you Dimon for your reply. to wait for a new version xs how much, the developer to download sykotno, tk. in production, you don’t want to get into a puddle with some kind of surprise. I will temporarily duplicate the field with the name of the searched object in lowercase, specifically only to use it for the index.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question