2 # get outer bounding box for all sites.
\r
3 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
4 content-type: application/json
\r
10 "field": "location.lat"
\r
15 "field": "location.lon"
\r
20 "field": "location.lat"
\r
25 "field": "location.lon"
\r
33 # get sites in bounding box
\r
34 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
35 content-type: application/json
\r
39 "geo_bounding_box": {
\r
41 "top": -10.681254175812176,
\r
42 "right": -48.3738302863769,
\r
43 "bottom": -10.736012963621369,
\r
44 "left": -48.433356043212834
\r
52 # get single site by id
\r
53 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
54 content-type: application/json
\r
71 # get sites with site links
\r
72 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
73 content-type: application/json
\r
80 "field": "references.site-links"
\r
89 # get the first 3 site links
\r
90 POST http://03-wtp-poc:9200/mwtn/site-link/_search HTTP/1.1
\r
91 content-type: application/json
\r
101 # get site links where siteA or siteZ refers to a list ob site ids.
\r
102 POST http://03-wtp-poc:9200/mwtn/site-link/_search HTTP/1.1
\r
103 content-type: application/json
\r
118 # get site links where siteLinkId is one of the ids in given List.
\r
119 POST http://03-wtp-poc:9200/mwtn/site-link/_search
\r
120 content-type: application/json
\r
126 {"term": {"id" : "aaapb:aacal"}},
\r
127 {"term": {"id" : "site-6:site-7"}},
\r
128 {"term": {"id" : "site-7:site-8"}}
\r
135 # get the first 3 site links
\r
136 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
137 content-type: application/json
\r
152 # get the first 3 site links
\r
153 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
154 content-type: application/json
\r
163 "lang": "expression",
\r
164 "inline" : "doc['references'].value['site-links'].length"
\r
166 "type" : "number",
\r
175 # get the first 3 site links
\r
176 POST http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
177 content-type: application/json
\r
196 # get the first 3 site links
\r
197 GET http://03-wtp-poc:9200/mwtn/site/_search HTTP/1.1
\r
198 content-type: application/json
\r
202 "function_score": {
\r
204 "script": "Math.pow(2, 2)",
\r