generated from datum-cloud/service-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Extend the existing search API request handlers to support result sorting. This enhancement must allow users to specify sort criteria when performing full-text searches. The endpoint should:
- Accept sorting parameters alongside the search query.
- Validate requested sort fields and directions against an allowlist.
- Execute the search against Meilisearch with the appropriate sort configuration.
- Return sorted results immediately.
Important
Sorting must apply strictly to full-text search results. Field-based filtering remains out of scope for this effort and will be addressed in a future release.
Acceptance Criteria
- Users must be able to search resources.
- Users must be able to paginate results using cursor-based pagination.
- Users must be able to sort results by supported fields.
- Users must be able to specify sort direction (
ascordesc). - The API must reject unsupported or invalid sort fields with appropriate validation errors.
- Sorting must be deterministic and compatible with cursor-based pagination.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog