FAQ
Hi Mario,

I wrote a module/plugin for mongoose that helps with this, available
here https://github.com/tblobaum/mongoose-troop#keywords

Optionally you can use it to apply porter-stemming to words in your
`name` field so that a search for `full texts` also returns documents
that have `full text`, etc

http://www.mongodb.org/display/DOCS/Full+Text+Search+in+Mongo
http://en.wikipedia.org/wiki/Stemming

Hope that helps.

Thomas Blobaum
https://github.com/tblobaum

On Tue, May 15, 2012 at 2:10 AM, Mario wrote:
I have the documents like this:

{
_id: ObjectId(),
name: 'Text'
},
{
_id: ObjectId(),
name: 'the text'
},
{
_id: ObjectId(),
name: 'the full text'
}

How can I find all documents matching the following text 'text full'? Should
I use regexp?

--
http://mongoosejs.com
http://github.com/learnboost/mongoose
You received this message because you are subscribed to the Google
Groups "Mongoose Node.JS ORM" group.
To post to this group, send email to mongoose-orm@googlegroups.com
To unsubscribe from this group, send email to
mongoose-orm+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mongoose-orm?hl=en
--
http://mongoosejs.com
http://github.com/learnboost/mongoose
You received this message because you are subscribed to the Google
Groups "Mongoose Node.JS ORM" group.
To post to this group, send email to mongoose-orm@googlegroups.com
To unsubscribe from this group, send email to
mongoose-orm+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mongoose-orm?hl=en

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 12 | next ›
Discussion Overview
groupmongoose-orm @
categoriesmongodb, nodejs
postedMay 15, '12 at 7:10a
activeNov 15, '13 at 2:13a
posts12
users5
websitemongoosejs.com
irc#mongoosejs

People

Translate

site design / logo © 2022 Grokbase