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

Cleaning up ui.py #55

Closed pgulley closed 7 months ago

pgulley commented 7 months ago

Indices are now obtained by asking the api for them, rather than by hard coding them, addressing #9 Termaggrs and termfields are now configured via the environment instead of hardcoded, using the same pattern as api.py- addressing #11

pgulley commented 7 months ago

Just once on startup- this is true of both the ui and the api. I see the appeal of updating that from time to time- I can spend a second on finding a way to do that! OTOH the wildcard pattern will always match new indices even if they're not explicitly exposed, and I think the vast bulk of external requests will just be via the wildcard, so I'm not sure really impacts the user experience