Ask HN: How to Implement Search/Filtering?
I'd like to use json-api, but https://jsonapi.org/format/#fetching-filtering is not much of help.
I like this answer - https://softwareengineering.stackexchange.com/a/233181/343294, where author references something like this - 'https://www.google.com/search?q=skeleton&tbas=0&tbm=isch&tbs=isz:l,ic:gray,itp:face,qdr:w,imgo:1'
Where can I learn more about these 'structures'? Do you have experience implementing something like this? Do you have experience of doing it both with POST and GET? which one do you think works better?
I err on the side of GET with more RESTful approach. I'd like to be able to bookmark easily. I doubt things I'm gonna need to search are going to be that complex, but they aren't gonna be totally trivial.
Would it be possible to make use of facets, use elastic-search on the backend, and yet be able to code all of it in url?
Thank you.
0 comments
[ 2.8 ms ] story [ 11.8 ms ] threadNo comments yet.