Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
8b5edc15
Commit
8b5edc15
authored
Oct 14, 2016
by
Simon Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase the default facet field limit from 100 to 10000
BM-6105
parent
428843ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
course_discovery/apps/api/serializers.py
+2
-1
course_discovery/settings/base.py
+3
-0
No files found.
course_discovery/apps/api/serializers.py
View file @
8b5edc15
...
...
@@ -4,6 +4,7 @@ import json
from
urllib.parse
import
urlencode
import
pytz
from
django.conf
import
settings
from
django.contrib.auth
import
get_user_model
from
django.db.models.query
import
Prefetch
from
django.utils.translation
import
ugettext_lazy
as
_
...
...
@@ -29,7 +30,7 @@ COMMON_SEARCH_FIELD_ALIASES = {
}
COURSE_RUN_FACET_FIELD_OPTIONS
=
{
'level_type'
:
{},
'organizations'
:
{},
'organizations'
:
{
'size'
:
settings
.
SEARCH_FACET_LIMIT
},
'prerequisites'
:
{},
'subjects'
:
{},
'language'
:
{},
...
...
course_discovery/settings/base.py
View file @
8b5edc15
...
...
@@ -362,6 +362,9 @@ HAYSTACK_CONNECTIONS = {
HAYSTACK_SIGNAL_PROCESSOR
=
'haystack.signals.RealtimeSignalProcessor'
# Elasticsearch search query facet "size" option to increase from the default value of "100"
# See https://www.elastic.co/guide/en/elasticsearch/reference/1.5/search-facets-terms-facet.html#_accuracy_control
SEARCH_FACET_LIMIT
=
10000
DEFAULT_PARTNER_ID
=
None
...
...
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