Implement fuzzy search as a service through REST and GraphQL (searchCourses and searchInstructors, since GraphQL doesn't support tagged union/sum types).
The total number of results is returned in the count field in the payload, and the result set (containing at most the requested number of results starting from the offset) is returned in the results field.
Parameters
query: The string to fuzzy-search. Required.
resultType: The type of result to return exclusively, course or instructor. Both types of results will be returned if left undefined.
limit and offset: For pagination purposes, defaults to 10 and 0 respectively.
Summary
Implement fuzzy search as a service through REST and GraphQL (
searchCourses
andsearchInstructors
, since GraphQL doesn't support tagged union/sum types).The total number of results is returned in the
count
field in the payload, and the result set (containing at most the requested number of results starting from the offset) is returned in theresults
field.Parameters
query
: The string to fuzzy-search. Required.resultType
: The type of result to return exclusively,course
orinstructor
. Both types of results will be returned if left undefined.limit
andoffset
: For pagination purposes, defaults to 10 and 0 respectively.Issues
Closes #131.