Skip to content

Commit c998223

Browse files
committed
use split indexes for all document types
In development, we're creating all of the indexes as needed, so we can name them anything. In production, there are now aliases for each document type, so we can use the split names even though the real index is still shared.
1 parent fe04e0d commit c998223

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/MetaCPAN/ESConfig.pm

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const my %config => merge(
2424
},
2525
documents => {
2626
author => {
27-
index => 'cpan_v1_01',
27+
index => 'author',
2828
type => 'author',
2929
mapping => 'es/author/mapping.json',
3030
model => 'MetaCPAN::Document::Author',
@@ -48,62 +48,62 @@ const my %config => merge(
4848
model => 'MetaCPAN::Document::Cover',
4949
},
5050
distribution => {
51-
index => 'cpan_v1_01',
51+
index => 'distribution',
5252
type => 'distribution',
5353
mapping => 'es/distribution/mapping.json',
5454
model => 'MetaCPAN::Document::Distribution',
5555
},
5656
favorite => {
57-
index => 'cpan_v1_01',
57+
index => 'favorite',
5858
type => 'favorite',
5959
mapping => 'es/favorite/mapping.json',
6060
model => 'MetaCPAN::Document::Favorite',
6161
},
6262
file => {
63-
index => 'cpan_v1_01',
63+
index => 'file',
6464
type => 'file',
6565
mapping => 'es/file/mapping.json',
6666
model => 'MetaCPAN::Document::File',
6767
},
6868
mirror => {
69-
index => 'cpan_v1_01',
69+
index => 'mirror',
7070
type => 'mirror',
7171
mapping => 'es/mirror/mapping.json',
7272
model => 'MetaCPAN::Document::Mirror',
7373
},
7474
package => {
75-
index => 'cpan_v1_01',
75+
index => 'package',
7676
type => 'package',
7777
mapping => 'es/package/mapping.json',
7878
model => 'MetaCPAN::Document::Package',
7979
},
8080
permission => {
81-
index => 'cpan_v1_01',
81+
index => 'permission',
8282
type => 'permission',
8383
mapping => 'es/permission/mapping.json',
8484
model => 'MetaCPAN::Document::Permission',
8585
},
8686
release => {
87-
index => 'cpan_v1_01',
87+
index => 'release',
8888
type => 'release',
8989
mapping => 'es/release/mapping.json',
9090
model => 'MetaCPAN::Document::Release',
9191
},
9292

9393
account => {
94-
index => 'user',
94+
index => 'account',
9595
type => 'account',
9696
mapping => 'es/account/mapping.json',
9797
model => 'MetaCPAN::Model::User::Account',
9898
},
9999
identity => {
100-
index => 'user',
100+
index => 'identity',
101101
type => 'identity',
102102
mapping => 'es/identity/mapping.json',
103103
model => 'MetaCPAN::Model::User::Identity',
104104
},
105105
session => {
106-
index => 'user',
106+
index => 'session',
107107
type => 'session',
108108
mapping => 'es/session/mapping.json',
109109
model => 'MetaCPAN::Model::User::Session',

0 commit comments

Comments
 (0)