gerardobort / mongorilla

Mongorilla is a simple, clean, and powerful NodeJS based content moderator for MongoDB.
mongorilla.herokuapp.com
MIT License
79 stars 24 forks source link

Create a node-config JSON post parser that allows to specify RegExps, Functions, etc #5

Closed gerardobort closed 11 years ago

gerardobort commented 11 years ago

Implemented =)

         "fastSearch": {
                "find": { "fullname": { "__constructor": "RegExp", "__arguments": ["(^|\\W*)${q}", "ig"] } },
                "sort": { "updated": -1 },
                "limit": 10, 
                "columns": ["lastname", "firstname", "uri", "created", "updated"]
            },