skip to Main Content

Mongodb – Mongo query to ignore non English characters

I have a mongo collection that stores city/country data in multiple languages. For example, the following query: db.cities_database.find({ "name.pl.country": "WÄ™gry" }).pretty().limit(10); Returns data in the following format: [ { _id: ObjectId('67331d2a9566994a18c505aa'), geoname_id_city: 714073, latitude: 46.91667, longitude: 21.26667, geohash: 'u2r4guvvmm4m', country_code:…

VIEW QUESTION
Back To Top
Search