Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c1abf432
Commit
c1abf432
authored
Nov 15, 2017
by
Bill Filler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable search
parent
0b659494
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
5 deletions
+77
-5
cms/envs/devstack_docker.py
+2
-2
lms/envs/common.py
+72
-0
lms/envs/devstack_docker.py
+3
-3
No files found.
cms/envs/devstack_docker.py
View file @
c1abf432
...
...
@@ -14,8 +14,8 @@ CMS_BASE = 'edx.devstack.studio:18010'
LMS_ROOT_URL
=
'http://{}'
.
format
(
LMS_BASE
)
FEATURES
.
update
({
'ENABLE_COURSEWARE_INDEX'
:
Fals
e
,
'ENABLE_LIBRARY_INDEX'
:
Fals
e
,
'ENABLE_COURSEWARE_INDEX'
:
Tru
e
,
'ENABLE_LIBRARY_INDEX'
:
Tru
e
,
'ENABLE_DISCUSSION_SERVICE'
:
True
,
})
...
...
lms/envs/common.py
View file @
c1abf432
...
...
@@ -3026,6 +3026,78 @@ SEARCH_FILTER_GENERATOR = "lms.lib.courseware_search.lms_filter_generator.LmsSea
# Override to skip enrollment start date filtering in course search
SEARCH_SKIP_ENROLLMENT_START_DATE_FILTERING
=
False
# Elasticsearch uses index settings to specify available analyzers.
# We are adding the lowercase analyzer and tweaking the ngram analyzers here,
# so we need to use these settings rather than the index defaults.
# We are making these changes to enable autocomplete for the typeahead endpoint.
# In addition we are specifying the number of shards and replicas that indices
# will be created with as recommended here:
# https://aws.amazon.com/blogs/database/get-started-with-amazon-elasticsearch-service-how-many-shards-do-i-need/
ELASTICSEARCH_INDEX_SETTINGS
=
{
'settings'
:
{
'index'
:
{
'number_of_shards'
:
1
,
'number_of_replicas'
:
1
},
'analysis'
:
{
'tokenizer'
:
{
'haystack_edgengram_tokenizer'
:
{
'type'
:
'edgeNGram'
,
'side'
:
'front'
,
'min_gram'
:
2
,
'max_gram'
:
15
},
'haystack_ngram_tokenizer'
:
{
'type'
:
'nGram'
,
'min_gram'
:
2
,
'max_gram'
:
15
}
},
'analyzer'
:
{
'lowercase'
:
{
'type'
:
'custom'
,
'tokenizer'
:
'keyword'
,
'filter'
:
[
'lowercase'
,
'synonym'
,
]
},
'snowball_with_synonyms'
:
{
'type'
:
'custom'
,
'filter'
:
[
'standard'
,
'lowercase'
,
'snowball'
,
'synonym'
],
'tokenizer'
:
'standard'
},
'ngram_analyzer'
:
{
'type'
:
'custom'
,
'filter'
:
[
'lowercase'
,
'haystack_ngram'
,
'synonym'
,
],
'tokenizer'
:
'keyword'
}
},
'filter'
:
{
'haystack_ngram'
:
{
'type'
:
'nGram'
,
'min_gram'
:
2
,
'max_gram'
:
22
},
'synonym'
:
{
'type'
:
'synonym'
,
'ignore_case'
:
'true'
,
'synonyms'
:
[]
}
}
}
}
}
### PERFORMANCE EXPERIMENT SETTINGS ###
# CDN experiment/monitoring flags
CDN_VIDEO_URLS
=
{}
...
...
lms/envs/devstack_docker.py
View file @
c1abf432
...
...
@@ -36,9 +36,9 @@ JWT_AUTH.update({
FEATURES
.
update
({
'AUTOMATIC_AUTH_FOR_TESTING'
:
True
,
'ENABLE_COURSEWARE_SEARCH'
:
Fals
e
,
'ENABLE_COURSE_DISCOVERY'
:
Fals
e
,
'ENABLE_DASHBOARD_SEARCH'
:
Fals
e
,
'ENABLE_COURSEWARE_SEARCH'
:
Tru
e
,
'ENABLE_COURSE_DISCOVERY'
:
Tru
e
,
'ENABLE_DASHBOARD_SEARCH'
:
Tru
e
,
'ENABLE_DISCUSSION_SERVICE'
:
True
,
'SHOW_HEADER_LANGUAGE_SELECTOR'
:
True
,
'ENABLE_ENTERPRISE_INTEGRATION'
:
True
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment