Closed philbudne closed 7 months ago
I don't think this is a must fix now issue (and note, I'm NOT usually "a quick bandage is good enough" person)!
The current configuration is good until 90 days from the end of 2024 (when the 2025 index will be created).
Considerations:
mediacloud_search_text
is passed as configuration ELASTICSEARCH_INDEX_NAME_PREFIX
to https://github.com/mediacloud/story-indexer/blob/main/indexer/workers/importer.py so it shouldn't be wired into the code
Should really query the news-search-api?
If news-search-api doesn't have a way to retrieve index names it could do so using:
esconnection.CatClient.indices(index="mediacloud_searchtext*",s="index")
Unless cached, this would happen each time the ui page loads?