79104414

Date: 2024-10-19 07:41:42
Score: 2
Natty:
Report link

Did you have an index with collation for your query? If not the query will pick the simple collation that means brand('Test') gives results but brand('test') gives an empty list. The index should be

db.collection.createIndex({ title: 1 }, { collation: { locale: 'en', strength: 2 } })
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you have an in
  • Low reputation (1):
Posted by: T.M.Q