Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API endpoint for returning Solr facet information about a query #2775

Open
afred opened this issue May 15, 2024 · 0 comments
Open

Add API endpoint for returning Solr facet information about a query #2775

afred opened this issue May 15, 2024 · 0 comments
Labels
dev 💻 Relating to development feature request 🧚 New feature request

Comments

@afred
Copy link
Contributor

afred commented May 15, 2024

Because

@foo4thought Has brought up a use case for wanting to use the HTTP api for getting additional query information from Solr, such as numFound and facet counts for arbitrary lucene queries.

Background

you can already see this in action accidentally when adding a .json extension to a regular catalog query URL, e.g. https://americanarchive.org/catalog?f[id]=cpb-aacip-ba6625ecc98&format=json&f[access_types][]=all

The problem with this though, is that it's going through blacklight, and the /api queries do not.

However the CatalogController's JSON response includes facet data from Solr while the ApiController's JSON response does not.

Done when

We have an API endpiont (at /api.json or somewhere else equally intuitive) that returns facet data as part of the JSON response.

@afred afred added feature request 🧚 New feature request dev 💻 Relating to development labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev 💻 Relating to development feature request 🧚 New feature request
Projects
None yet
Development

No branches or pull requests

1 participant