boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

Cleanup JSON response #140

Closed jwillbpl closed 6 months ago

jwillbpl commented 6 months ago

These changes should ease the use of the JSON API, greatly reducing the response size of the search.json endpoint.

The JSON builder now omits the thousands of lines from the facets "included" and the large field "mods_xml_ss" for each item.

This originated from a custom GPT browsing experiment, which JSON responses would be too large to parse most of the times.

bplwebmaster commented 6 months ago

Can one of the admins verify this patch?