fix(tolaria-search): repair admin rebuild source path
server.py resolved SOURCE_JSON to ../c4a_evidence/index_source.json which does not exist in the deployed container. The C4B service ships index_source.json in its own directory. Fix resolves robustly relative to the service root.
This commit is contained in:
parent
29cbca9357
commit
4122bdd408
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ from urllib.parse import urlparse, parse_qs
|
|||
from search_api import TolariaSearch, SearchError, SUPPORTED_MODES
|
||||
|
||||
DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
|
||||
SOURCE_JSON = os.path.join(os.path.dirname(__file__), "..", "c4a_evidence", "index_source.json")
|
||||
SOURCE_JSON = os.path.join(os.path.dirname(__file__), "index_source.json")
|
||||
INDEX_JSON = os.path.join(DATA_DIR, "search_index.json")
|
||||
REBUILD_TOKEN = os.environ.get("TOLARIA_SEARCH_REBUILD_TOKEN", "")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue