Assets Server SOAP API - search

Note: The Elvis SOAP Web service has been deprecated. It remains available to allow existing third-party applications or integrations to stay compatible with newer Elvis Server versions. We advise to use the REST API for any new developments.

Below is an example request and response.

Note: The wrapping SOAP envelope and authentication header have been omitted to make the samples easier to read. Detailed documentation about each of the elements and their possible values is provided in the WSDL.

Search request body

<e:searchRequest xmlns:e="http://www.dutchsoftware.com/xmlns/elvis/webservice/1.0"
xmlns:q="http://www.dutchsoftware.com/xmlns/elvis/query/1.0">
<e:query>
<!--
Any of the supported query types can be used here
-->
<q:boolQuery>
<q:should>
<q:queryStringQuery>example</q:queryStringQuery>
</q:should>
<q:must>
<q:termQuery>
<q:field>assetDomain</q:field>
<q:value>video</q:value>
</q:termQuery>
</q:must>
<q:mustNot>
<!--
Supported formats for date searches
(example below uses yyyy-MM-dd HH:mm:ss Z):
yyyy-MM-dd'T'HH:mm:ssZ
yyyy-MM-dd'T'HH:mm:ss
HH:mm:ss
EEE MMM dd HH:mm:ss z yyyy
Nr of milliseconds since 1970-01-01
-->
<q:betweenQuery>
<q:field>assetCreated</q:field>
<q:lowValue>2008-05-01 00:00:00+0100</q:lowValue>
<q:highValue>2008-11-02 00:00:00+0100</q:highValue>
</q:betweenQuery>
</q:mustNot>
</q:boolQuery>
</e:query>
<!--
Optional, when not specified default sorting by score is applied
-->
<e:sorting>
<e:sort descending="true">
<e:field>score</e:field>
</e:sort>
</e:sorting>
<!--
First result to return, default value is 0 (first).
-->
<e:firstResult>0</e:firstResult>
<!--
Max results to return, set to 0 to return all results (take care,
this may take some time and slow down the server if your search
finds millions of results).
-->
<e:maxResultHits>100</e:maxResultHits>
<!--
Fields to be returned, do not specify to return all available metadata.
Note that only metadata stored in the index can be returned in a search response.
Other metadata has to be retrieved using a separate webservice retrieveRequest.
-->
<e:metadataToReturn>
<e:field>created</e:field>
<e:field>fileSize</e:field>
<e:field>folderPath</e:field>
<e:field>tags</e:field>
</e:metadataToReturn>
</e:searchRequest>