mediacloud / news-search-api

Internal API server that offers search access to the Media Cloud Online News Archive (in Elasticsearch).
https://mediacloud.org
GNU Affero General Public License v3.0
1 stars 3 forks source link

fix: change query to fetch article by ID #61

Closed thepsalmist closed 6 months ago

thepsalmist commented 6 months ago

This PR is a quick fix on searching an article by id. Since we're switching to ILM, we expect to conduct search on the index alias that maps to multiple indices. The GET api assumes searching a single index, hence the error posted on slack.

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"alias [mc_search] has more than one index associated with it