[SERVER-23599] text index unique constraint violation Created: 07/Apr/16 Updated: 15/Apr/16 Resolved: 07/Apr/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 3.2.1 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | telmo sa | Assignee: | Kelsey Schubert |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
I have this index setup:
unique. I could only create it if I dont have _fts field with values like: archive-collections-2 When I try to:
I get:
Notice it's using only \"2\" and thus it violates the unique constraint. Is this supposed to happen? Thank you! |
| Comments |
| Comment by Kelsey Schubert [ 08/Apr/16 ] |
|
Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. Thank you, |
| Comment by telmo sa [ 08/Apr/16 ] |
|
Hi. Thank you. . Telmo |
| Comment by Kelsey Schubert [ 08/Apr/16 ] |
Kind regards, |
| Comment by telmo sa [ 07/Apr/16 ] |
|
Hi, thank you for the prompt answer. Telmo |
| Comment by Kelsey Schubert [ 07/Apr/16 ] |
|
This is expected behavior as the dash character is a token delimiter. For additional information on tokenization delimiters, please review our documentation here. Kind regards, |