[DOCS-2901] $text in aggregation doesn't say it must be the first stage Created: 11/Mar/14 Updated: 11/Jan/17 Resolved: 11/Mar/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | William Cross | Assignee: | Shannon Bradshaw (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 9 years, 49 weeks, 1 day ago |
| Description |
|
http://docs.mongodb.org/master/tutorial/text-search-in-aggregation/ It says, under "Restrictions," that a $text search can only happen once in the aggregation pipeline: A text operator can only occur once in the stage. This is technically true, but only because the $text search must happen first. I tried to $project first, then $text search to see if it would work, and I got an error:
|
| Comments |
| Comment by Kay Kim (Inactive) [ 11/Mar/14 ] |
|
already has the line: Restrictions Text search in the aggregation pipeline has the following restrictions: The $match stage that includes a $text must be the first stage in the pipeline. |