gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

Combine fulltext search and filtering? #144

Open stefandesu opened 3 years ago

stefandesu commented 3 years ago

From #143:

We may also also add this parameter to /voc/{search,suggest} so we can use vocabulary search via backend in Cocoda.

I'd love to do that, but the thing is: So far, filtering and text search are completely separate. The former is done on the entity endpoint (/voc in this case), the latter on the search/suggest endpoint. That's why in BARTOC, you can only either search or filter, not both.

However, I don't think that there is something that technically prevents us from combining it. The issue has rather been that we weren't sure how to change in API. Do we add search to the entity endpoint or add filter to the search endpoint? Does search support all the same filtering parameters as the entity endpoint?