Skip to content

feat(search): sortProperties on searchRequest - #61

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

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.
@dschmidt
dschmidt force-pushed the feat/search-sort-properties branch from a936b79 to 13117f3 Compare September 7, 2026 21:36
@dschmidt
dschmidt marked this pull request as ready for review September 7, 2026 23:55
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