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 full text in story list results #7

Closed rahulbot closed 9 months ago

rahulbot commented 11 months ago

For internal projects we often want to include full extracted text along with the results of story listing. This is because listing 100 URLs, and then making 100 new requests to fetch the extracted content of each, is cumbersome and computationally expensive. We should add an include_text option (or something more appropriately named to match the field name) to the endpoint that allows for listing stories so that this can be done faster.