async fn search_pages_with_phrase(
course_id: Path<Uuid>,
payload: Json<SearchRequest>,
pool: Data<PgPool>,
) -> ControllerResult<Json<Vec<PageSearchResult>>>
Expand description
POST /api/v0/course-material/courses/:course_id/search-pages-with-phrase
- Returns a list of pages given a search query.
Provided words are supposed to appear right after each other in the source document.
ยงExample
Request:
POST /api/v0/course-material/courses/1a68e8b0-d151-4c0e-9307-bb154e9d2be1/search-pages-with-phrase HTTP/1.1
Content-Type: application/json
{
"query": "Everything"
}