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

Make search APIs #64

Open
3 of 6 tasks
e-caste opened this issue Jan 14, 2022 · 0 comments
Open
3 of 6 tasks

Make search APIs #64

e-caste opened this issue Jan 14, 2022 · 0 comments
Assignees
Labels
Backend Backend related

Comments

@e-caste
Copy link
Member

e-caste commented Jan 14, 2022

We want to perform a full text search within all the valid parts of the selected portion of the database. We can try to define the best possible search orders and follow them (orders by hit probability of that property of the document).
If this is unfeasible, we should look into integrating third party solutions such as ElasticSearch (if it can be used for this) or others.

  • GET /v1/searchCourses {query: "string"} -- search course titles: nothing found -> (TODO: search course professors ->) search question titles -- returns list of courses
  • corresponding test
  • GET /v1/searchQuestions {query: "string", courseId: int} -- search question titles: nothing found -> question tags: nothing found -> question text -- returns list of questions of that course containing the query
  • corresponding test
  • GET /v1/searchDiscussion {query: "string", questionId: int} -> returns list of comments to that question containing the query
  • corresponding test
@e-caste e-caste added the Backend Backend related label Jan 14, 2022
@e-caste e-caste added this to the Backend APIs v1 milestone Jan 14, 2022
Quadrollopo added a commit that referenced this issue Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Backend related
Projects
None yet
Development

No branches or pull requests

2 participants