Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

72
Views
Mongoose index embedded field of translations

For our schema, we store multi language version of our fields as an object, e.g.

{ title: {type: Object} }

And below is an example of the data we save

{
  title: {
    en: "abc",
    jp: "ひらがな"
  }
}

However, we will add language from time to time and do not want to edit the schema everytime,

How should we do indexing for the title field in each language properly so it can be searched easily?

We use Mongoose and Node.js

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!