mongoosejs / mongoose-text-search

MongoDB 2.4 text search support for mongoose
154 stars 9 forks source link

Project not fully working #9

Closed andrepcg closed 10 years ago

andrepcg commented 10 years ago

My documents have the following object inside

"random": {
    "coordinates": [
        0.8316348162479699,
        0.0699989115819335
    ],
    "type": "Point"
}

but when I use

project: "-random"

the random field still shows.

Edit: it's not only that field, i tried projecting in reverse (only including the field I want like: "title") but random field and two others are still showing

andrepcg commented 10 years ago

Set lean to true and worked now.