I am worked on my current project with MONGO, I need a query if i am search a letter need to search every word
ex: I have 3 topics named in my db as below
chemistry, chemical, organic chemistry
i tried with query like below
db.topics.find({name: { '$regex': '^che', '$options': 'i' }}, {})
but i am getting results of chemistry and chemical only
but my requirement is if i search with che then that letter need to check firtst letters of every word and results comes with chemistry, chemical and organic chemistry also (because in organic chemistry have word starts with chemistry