Search Quizzes (POST)
Search for public quizzes with advanced filtering and highlighting.Request Body
Search query text
Number of results to skip (for pagination)
Maximum number of results to return
Filter expression (Meilisearch syntax)Examples:
imported_from_kahoot = falseuser = "username"
Array of sort criteriaExamples:
["created_at:desc"]["likes:desc", "views:desc"]
Attributes to include in results
Attributes to crop to specified length
Maximum length for cropped attributes
Attributes to highlight matching terms in
Example Request
Response
Array of matching quiz objects
The search query that was executed
Number of results requested
Pagination offset
Search processing time in milliseconds
Hit Object
Quiz ID
Quiz title
Quiz description
Username of quiz creator
Whether quiz was imported from Kahoot
Formatted version with highlighted matches (when using attributesToHighlight)
Example Response
Search Quizzes (GET)
Search for quizzes using URL parameters (simpler alternative to POST).Query Parameters
Search query text
Pagination offset
Number of results
Filter expression
Crop length for text fields
Comma-separated attributes to highlight
Example Request
Response
Same format as POST endpoint.Search Features
Full-Text Search
Meilisearch provides typo-tolerant full-text search across:- Quiz titles
- Quiz descriptions
- Creator usernames
Filtering
Filter quizzes by:- Import status:
imported_from_kahoot = true/false - Creator:
user = "username" - Custom filters based on indexed attributes
Sorting
Sort results by:likes:desc- Most likedviews:desc- Most viewedplays:desc- Most playedcreated_at:desc- Newest firstcreated_at:asc- Oldest first
Highlighting
Request highlighted results to show where search terms matched:<em> tags in the formatted field.
Pagination
Useoffset and limit for pagination:
Search Examples
Basic Search
Search with Filters
Search by User
Highlighted Results
Search Tips
Typo Tolerance
Meilisearch automatically handles typos:- “sceince” → finds “science”
- “mathmatic” → finds “mathematics”
Empty Query
An empty query (q: "") returns all quizzes, useful with filters:
Performance
Meilisearch is extremely fast - most searches complete in under 50ms. TheprocessingTimeMs field shows actual search time.
Index Maintenance
The search index is automatically updated when:- New quizzes are created
- Quizzes are made public
- Quizzes are updated
- Quizzes are deleted