blob: f74fba2e5db643729a9ae1419381af22add2276b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<h2 class="div"><a name="search"></a>search</h2>
<p>
<code>http://your-server/rest/search.view</code>
<br>Since <a href="#versions">1.0.0</a>
<br>Deprecated since <a href="#versions">1.4.0</a>, use <code>search2</code> instead.
</p>
<p>
Returns a listing of files matching the given search criteria. Supports paging through the result.
</p>
<table width="100%" class="bottomspace">
<tr>
<th class="param-heading">Parameter</th>
<th class="param-heading">Required</th>
<th class="param-heading">Default</th>
<th class="param-heading">Comment</th>
</tr>
<tr class="table-altrow">
<td><code>artist</code></td>
<td>No</td>
<td></td>
<td>Artist to search for.</td>
</tr>
<tr>
<td><code>album</code></td>
<td>No</td>
<td></td>
<td>Album to searh for.</td>
</tr>
<tr class="table-altrow">
<td><code>title</code></td>
<td>No</td>
<td></td>
<td>Song title to search for.</td>
</tr>
<tr>
<td><code>any</code></td>
<td>No</td>
<td></td>
<td>Searches all fields.</td>
</tr>
<tr class="table-altrow">
<td><code>count</code></td>
<td>No</td>
<td>20</td>
<td>Maximum number of results to return.</td>
</tr>
<tr>
<td><code>offset</code></td>
<td>No</td>
<td>0</td>
<td>Search result offset. Used for paging.</td>
</tr>
<tr class="table-altrow">
<td><code>newerThan</code></td>
<td>No</td>
<td></td>
<td>Only return matches that are newer than this. Given as milliseconds since 1970.</td>
</tr>
</table>
<p>
Returns a <code><subsonic-response></code> element with a nested <code><searchResult></code>
element on success. <a href="http://subsonic.svn.sourceforge.net/viewvc/subsonic/trunk/subsonic-main/src/main/webapp/xsd/searchResult_example_1.xml?view=markup">Example</a>.
</p>
|