forked from senseidb/sensei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client-rest-selections.html
77 lines (73 loc) · 1.82 KB
/
client-rest-selections.html
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
66
67
68
69
70
71
72
73
74
75
76
77
---
layout: api
title: SenseiDB - Selections JSON Reference
---
<div class="hero-unit">
<h2>Selections Reference</h2>
<p>
Checkout <a href="client-rest-req.html">Request</a>, <a href="client-rest-query.html">Query</a>, and <a href="client-rest-filter.html">Filter</a> sections for detailed references.
</p>
<p><a class="btn primary large" href="client-rest.html">Back to Overview »</a></p>
</div>
<pre class="prettyprint" id="javascript">
[
{
"term":{
"category":{
"value":"sedan"
}
}
},
{
"terms":{
"tags":{
"values" : [ "mp3", "moon-roof" ],
"excludes" : ["leather"],
"operator" : "or"
}
}
},
{
"range":{
"year":{
"to":"2009", //if there is no such key (upper, or lower), it returns "*";
"from":"2000",
"include_lower":true, //by default 'include_lower' and 'include_upper' are set to true;
"include_upper":false
}
}
},
{
"path":{
"city":{
"value":"a/b/c",
"strict":false,
"depth":1
}
}
},
{
"custom":{
"network":{
"values":["0","1"],
"excludes":[],
"runtime-params":{
"srcId":{
"type":"int",
"values":["$member"]
}
}
}
}
},
{
"default":{
"color":{
"values":[],
"excludes":[],
"params":{ }
}
}
}
]
</pre>