[CSHARP-494] Support Regular Expressions for $in query builders on strings Created: 14/Jun/12 Updated: 05/Apr/19 Resolved: 14/Jun/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.4.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sunil Raj | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | commands, question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
CSharp Driver Linq to MongoDB |
||
| Issue Links: |
|
||||||||
| Description |
|
In operators for query builders and Linq extension should take regular expressions as arguments when the operator is a string. Original report: db.Feeds.find({ShortDescription:{$in:[/sunil/, /raj/]}}) I have tried: , StringSplitOptions.RemoveEmptyEntries).Select(s => string.Format("/ {0}/", s)).ToList(); |
| Comments |
| Comment by Sunil Raj [ 14/Jun/12 ] |
|
Answer to my own question. The PredicateBuilder in the c# driver converts the query: to: |
| Comment by Sunil Raj [ 14/Jun/12 ] |
|
Edit: string tags="sunil, raj"; |