/
Search Examples
Search Examples
These examples of how to search Swarm are demonstrated through curl.
Queries for Buckets
Tip
For queries within a single bucket, include the bucket in the URL; the filter context=<domain>/<bucketname>
does not need to be added.
Query with fields, not involving context
curl -i -X GET
"http://{cluster}?format=json&domain=example.com
&fields=name,content-length"
Query with fields, retrieving context as one of the fields
curl -i -X GET
"http://{cluster}?format=json&domain=example.com
&fields=name,content-length,context"
Retrieving context as one of the fields and sorting on context
curl -i -X GET
"http://{cluster}?format=json&domain=example.com
&fields=name,content-length,context&sort=context:asc"
curl -i -X GET
"http://{cluster}?format=json&domain=example.com
&fields=name,content-length,contextid,context&sort=context:desc"
List objects >1GB, sorted by size descending
Sorting on multiple fields, context, and name, in different orderings
Listing query, retrieving context as one of the fields, sorting on multiple fields with context
Queries for Named Objects
Retrieving context as one of the fields
Retrieving context as one of the fields and sorting on context
Sorting on context and another field in different orderings
Sorting and inequality context filters
Sorting and wildcard context filter
Sorting and context marker and multiple markers
With du argument, withreps and withoutreps
Queries for Unnamed Objects
With context sort
Queries for Named and Unnamed Objects
With context sort
With context wildcard filter
, multiple selections available,
Related content
Search Queries
Search Queries
More like this
Search Operations
Search Operations
More like this
Listing Operations
Listing Operations
Read with this
Using the python elasticsearch SDK to list objects in a bucket
Using the python elasticsearch SDK to list objects in a bucket
More like this
Metadata Field Matching
Metadata Field Matching
Read with this
Elasticsearch Implementation
Elasticsearch Implementation
More like this
© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.