Skip to content

Commit

Permalink
Search: fix default for search.ranking when indexing (#10945)
Browse files Browse the repository at this point in the history
This only happens if the project doesn't have a configuration file
attached to it (even the default one we create when the project doesn't
have one). So, this actually happening is very rare,
probably the build wasn't updated before the search index was triggered.

Ref https://read-the-docs.sentry.io/issues/4701432554/?project=148442&query=is%3Aunresolved+firstSeen%3A-4h&referrer=issue-stream&statsPeriod=24h&stream_index=0
  • Loading branch information
stsewd authored Jan 2, 2024
1 parent 963405f commit 5a53b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/projects/tasks/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def index_build(build_id):

build_config = build.config or {}
search_config = build_config.get("search", {})
search_ranking = search_config.get("ranking", [])
search_ranking = search_config.get("ranking", {})
search_ignore = search_config.get("ignore", [])

try:
Expand Down

0 comments on commit 5a53b7b

Please sign in to comment.