Commit 4abcb742 by Jillian Vogel

PR review: adds new fields to create_elasticsearch_learners_indices.py

parent cee1c340
...@@ -29,6 +29,9 @@ class Command(BaseCommand): ...@@ -29,6 +29,9 @@ class Command(BaseCommand):
'name': { 'name': {
'type': 'string' 'type': 'string'
}, },
'user_id': {
'type': 'integer', 'index': 'not_analyzed'
},
'username': { 'username': {
'type': 'string', 'index': 'not_analyzed' 'type': 'string', 'index': 'not_analyzed'
}, },
...@@ -41,6 +44,33 @@ class Command(BaseCommand): ...@@ -41,6 +44,33 @@ class Command(BaseCommand):
'enrollment_mode': { 'enrollment_mode': {
'type': 'string', 'index': 'not_analyzed', 'doc_values': True 'type': 'string', 'index': 'not_analyzed', 'doc_values': True
}, },
'language': {
'type': 'string', 'index': 'not_analyzed'
},
'location': {
'type': 'string', 'index': 'not_analyzed'
},
'year_of_birth': {
'type': 'integer', 'index': 'not_analyzed'
},
'level_of_education': {
'type': 'string', 'index': 'not_analyzed'
},
'gender': {
'type': 'string', 'index': 'not_analyzed'
},
'mailing_address': {
'type': 'string', 'index': 'not_analyzed'
},
'city': {
'type': 'string', 'index': 'not_analyzed'
},
'country': {
'type': 'string', 'index': 'not_analyzed'
},
'goals': {
'type': 'string', 'index': 'not_analyzed'
},
'segments': { 'segments': {
'type': 'string' 'type': 'string'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment