Files
opencloud/search.sh
Dominik Schmidt 8dc26fe192 chore: bump libre-graph-api-go
Adapt the collaboration service to the changed GetUserPhoto return type.
2026-07-15 10:10:33 +02:00

24 lines
533 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
QUERY="${1:-audio.artist:Motörhead}"
https --ignore-stdin --verify=no -a admin:admin REPORT \
https://localhost:9200/dav/spaces/ \
Content-Type:application/xml \
--raw "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<search-files xmlns=\"DAV:\">
<prop>
<displayname/>
<resourcetype/>
<getcontenttype/>
<getcontentlength/>
<getlastmodified/>
</prop>
<search>
<pattern>${QUERY}</pattern>
<limit>50</limit>
<offset>0</offset>
</search>
</search-files>"