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

add option to include extracted content in story lists #38

Closed rahulbot closed 8 months ago

rahulbot commented 8 months ago

We have a handful of integrations with other internal projects where we want to regularly list large sets of stories including the extracted content. Right now we have to do that by listing stories and then making another fetch call to get the content for each story. This is inefficient for both sides of this data fetch. One quick fix for this would be to add a boolean option to the search/result call. When set to true, it would include extra informaiton like the text_content field alongside the other metadata returned. This would make internal integrations far easier.

rahulbot commented 8 months ago

(Oops - dupe of #7)