Skip to content

Commit

Permalink
Fix search index rebuild script (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed May 24, 2024
1 parent a3cca36 commit f95c77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/palace/manager/core/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2388,9 +2388,9 @@ class RebuildSearchIndexScript(RunWorkCoverageProviderScript, RemovesSearchCover
"""Completely delete the search index and recreate it."""

def __init__(self, *args, **kwargs):
search = kwargs.get("search_index_client", None)
self.search: ExternalSearchIndex = search or self.services.search.index()
search = kwargs.pop("search_index_client", None)
super().__init__(SearchIndexCoverageProvider, *args, **kwargs)
self.search: ExternalSearchIndex = search or self.services.search.index()

def do_run(self):
self.search.clear_search_documents()
Expand Down

0 comments on commit f95c77f

Please sign in to comment.