[SERVER-9392] Create compatible text-search query syntax Created: 18/Apr/13 Updated: 10/Dec/14 Resolved: 16/Sep/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Text Search |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Paul Pedersen | Assignee: | hari.khalsa@10gen.com |
| Resolution: | Duplicate | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
Text search integration 1. Syntax // basic search db.coll.find( {$text : {$search : "term"}} ) // language option db.coll.find( {$text : {$search : "term", $language : "spanish" }} ) // integrated skip / limit db.coll.find( {$text : {$search : "term"}} ).skip(10*(pageno-1)).limit(10) // integrated sort db.coll.find( {$text : {$search : "term"}} ).sort( { date : 1 }) // integrated projection db.coll.find( {$text : {$search : "term"}}, {description : 1, _id : 0}) // integrated filter (explicit and) db.coll.find( {$and : [ {$text : {$search : "term" }}, {name : /a.*/}] } ) // integrated filter (implicit and) GOOD-ERH db.coll.find( { $text : {$search : "term" }, name : /a.*/ } ) // all features combined db.coll.find( { $and : [ {$text : {$search : "\"phrase terms\" \"and term\" -term", $language : "spanish" }}, { name : /a.*/ } // filter ] }, { name : 1, description : 1, _id : 0 } // projection ).sort( { date : 1 }).skip(10).limit(10) |
| Comments |
| Comment by J Rassi [ 16/Sep/13 ] |
|
Closing as dup of parent issue |
| Comment by Andre Spiegel [ 28/Aug/13 ] |
|
Will text search also be available from the aggregation framework? In 2.6? |