Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 4abcb74

Browse files
committed
PR review: adds new fields to create_elasticsearch_learners_indices.py
1 parent cee1c34 commit 4abcb74

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

analytics_data_api/management/commands/create_elasticsearch_learners_indices.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def handle(self, *args, **options):
2929
'name': {
3030
'type': 'string'
3131
},
32+
'user_id': {
33+
'type': 'integer', 'index': 'not_analyzed'
34+
},
3235
'username': {
3336
'type': 'string', 'index': 'not_analyzed'
3437
},
@@ -41,6 +44,33 @@ def handle(self, *args, **options):
4144
'enrollment_mode': {
4245
'type': 'string', 'index': 'not_analyzed', 'doc_values': True
4346
},
47+
'language': {
48+
'type': 'string', 'index': 'not_analyzed'
49+
},
50+
'location': {
51+
'type': 'string', 'index': 'not_analyzed'
52+
},
53+
'year_of_birth': {
54+
'type': 'integer', 'index': 'not_analyzed'
55+
},
56+
'level_of_education': {
57+
'type': 'string', 'index': 'not_analyzed'
58+
},
59+
'gender': {
60+
'type': 'string', 'index': 'not_analyzed'
61+
},
62+
'mailing_address': {
63+
'type': 'string', 'index': 'not_analyzed'
64+
},
65+
'city': {
66+
'type': 'string', 'index': 'not_analyzed'
67+
},
68+
'country': {
69+
'type': 'string', 'index': 'not_analyzed'
70+
},
71+
'goals': {
72+
'type': 'string', 'index': 'not_analyzed'
73+
},
4474
'segments': {
4575
'type': 'string'
4676
},

0 commit comments

Comments
 (0)