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

api.py takes configuration for aggregations, ui.py has them wired in? #11

Closed philbudne closed 7 months ago

philbudne commented 10 months ago

api.py takes aggregations as configuration (ie; TERMAGGRS in the environment) but ui.py has this wired in:

for i, aggr in enumerate(["top", "significant", "rare"]):
philbudne commented 10 months ago

api.py also takes TERMFIELDS, ui.py has:

for fld in ["article_title", "text_context"]:

I'm just imagining these two identical lists in the two components should be configured identically!!!