Skip to content

feat(search): sortProperties on searchRequest - #61

Draft
dschmidt wants to merge 1 commit into
feat/searchfrom
feat/search-sort-properties
Draft

feat(search): sortProperties on searchRequest#61
dschmidt wants to merge 1 commit into
feat/searchfrom
feat/search-sort-properties

Conversation

@dschmidt

@dschmidt dschmidt commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Adds sortProperties / sortProperty to searchRequest, following the MS Graph sortProperty resource type. Sortable are the scalar properties carried on the search hit's resource; multivalued and unknown properties are rejected with invalidRequest.

Implementation: opencloud-eu/opencloud#3298
Stacked on #34.

Adds `sortProperties` to searchRequest, following the MS Graph
sortProperty resource type: an ordered list of {name, isDescending}
entries; results are sorted by relevance when absent.

Sortable are the scalar properties carried on the search hit's
resource (name, size, lastModifiedDateTime, mimeType and scalar facet
properties such as photo.takenDateTime or audio.artist). Strings sort
lexicographically, numbers and dates by value. Multivalued and
unknown properties are rejected with invalidRequest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant