-
Notifications
You must be signed in to change notification settings - Fork 4
/
mongoIndexSpec.json
85 lines (85 loc) · 2.41 KB
/
mongoIndexSpec.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"artists": [
{ "key": { "id": 1 }, "unique": true },
{
"key": {
"name": "text",
"realName.name": "text",
"nameVariations.name": "text",
"aliases.name": "text",
"groups.name": "text"
},
"weights": {
"name": 10,
"realName": 5,
"nameVariations.name": 8,
"aliases.name": 6,
"groups.name": 2
}
},
{ "key": { "originalName": 1 }, "unique": true },
{ "key": { "name": 1, "nameIndex": 1 } },
{
"key": { "realName.originalName": 1 },
"partialFilterExpression": {
"realName.originalName": { "$exists": true }
}
},
{ "key": { "members.originalName": 1 } },
{ "key": { "members.id": 1 } },
{ "key": { "aliases.originalName": 1 } },
{ "key": { "aliases.id": 1 } },
{ "key": { "groups.originalName": 1 } },
{ "key": { "groups.id": 1 } },
{ "key": { "nameVariations.originalName": 1 } }
],
"labels": [
{ "key": { "id": 1 }, "unique": true },
{ "key": { "subLabels.id": 1 } },
{
"key": { "parent": 1 },
"partialFilterExpression": { "parent": { "$exists": true } }
},
{ "key": { "name": "text" } },
{ "key": { "originalName": 1 }, "unique": true },
{ "key": { "name": 1, "nameIndex": 1 } }
],
"masters": [
{ "key": { "id": 1 }, "unique": true },
{
"key": { "main_release": 1 },
"unique": true,
"partialFilterExpression": { "year": { "main_release": true } }
},
{ "key": { "title": "text" } },
{ "key": { "genres": 1 } },
{ "key": { "styles": 1 } },
{ "key": { "artists.id": 1 } },
{ "key": { "artists.name": 1 } },
{
"key": { "year": 1 },
"partialFilterExpression": { "year": { "$exists": true } }
}
],
"releases": [
{ "key": { "id": 1 }, "unique": true },
{ "key": { "title": "text" } },
{ "key": { "artists.id": 1 } },
{ "key": { "artists.name": 1 } },
{ "key": { "companies.id": 1 } },
{ "key": { "companies.name": 1 } },
{ "key": { "labels.catno": 1 } },
{ "key": { "labels.id": 1 } },
{ "key": { "labels.name": 1 } },
{
"key": { "masterId": 1, "isMainRelease": 1 },
"partialFilterExpression": { "masterId": { "$exists": true } }
},
{ "key": { "genres": 1 } },
{ "key": { "styles": 1 } },
{
"key": { "released": 1 },
"partialFilterExpression": { "released": { "$exists": true } }
}
]
}