MLstate / opalang

The Opa Language for Web Application Development
http://opalang.org
Other
1.24k stars 125 forks source link

Perform a text-search on a document field using high-level API. #162

Closed gogson closed 9 years ago

gogson commented 9 years ago

Hello, I'd like to perform a text-search when querying datas from MongoDB.

Actually, Iter.to_list(DbSet.iterator(/users/players[name=="Hugo"; order -date])) will returns all players with name "Hugo".

I want to be able to retrieve all players with the "Hugo" string contained in their name. If there's an "Charles-Hugo" I want to be able to retrieve him too.

Any idea ? Can I use regexs ?

Thanks =)

hbbio commented 9 years ago

GitHub issues are not a place to ask for help.