Open andrewkchan opened 6 years ago
You may find https://docs.djangoproject.com/en/2.0/topics/pagination/ helpful
@theandrewchan @bdeleonardis1 take a look at https://github.com/codebase-berkeley/ApplicationPortal/commit/0487f02db56a41a7fe4993070985a35a562d5b8f and let me know if i'm missing anything
For text search queries, the only thing is that I want the string matching to be more robust than just ignoring case, it should catch slight mispellings and such too. This might be non-trivial and require implementing something like elasticsearch etc.
Something like https://github.com/codebase-berkeley/ApplicationPortal/pull/50?
The only thing left to do for this is test it!
Hey @OldGuo , I'm getting a 500 error with line 47, something about lists not having a filter
attribute. I think it might have something to do with the list comprehension you added for the fuzzy string matching?
My bad. I didn't update the category filter after changing things around for fuzzy matching. Pushed up a fix https://github.com/codebase-berkeley/ApplicationPortal/commit/18c24404308219ac7ef75aa8adb25ed72de50def
See (https://github.com/codebase-berkeley/ApplicationPortal/wiki/API-Endpoints):
/applications
endpoint without other filters