Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #%RAML 0.8
- title: Information Retrieval API
- version: v1
- /search:
- get:
- queryParameters:
- categories:
- description: list of categories ids
- industries:
- description: list of industries ids
- regions:
- description: list of regions ids
- keyword:
- description: a searched text
- responses:
- 200:
- body:
- application/json:
- example: |
- {
- "took" : 3,
- "timed_out" : false,
- "_shards" : {
- "total" : 5,
- "successful" : 5,
- "failed" : 0
- },
- "hits" : {
- "total" : 294,
- "max_score" : null,
- "hits" : [ {
- "_index" : "webshop-channel_20150526094250611",
- "_type" : "channel",
- "_id" : "55",
- "_score" : null,
- "sort" : [ 10677 ]
- }, {
- "_index" : "webshop-channel_20150526094250611",
- "_type" : "channel",
- "_id" : "40",
- "_score" : null,
- "sort" : [ 5969 ]
- }, ]
- },
- "facets" : {
- "categories" : {
- "_type" : "terms",
- "missing" : 6,
- "total" : 16344,
- "other" : 0,
- "terms" : [ {
- "term" : 70,
- "count" : 269
- } ]
- },
- "industries" : {
- "_type" : "terms",
- "missing" : 6,
- "total" : 8617,
- "other" : 0,
- "terms" : [ {
- "term" : 46,
- "count" : 283
- }, {
- "term" : 42,
- "count" : 282
- } ]
- },
- "regions" : {
- "_type" : "terms",
- "missing" : 4,
- "total" : 3413,
- "other" : 0,
- "terms" : [ {
- "term" : 341,
- "count" : 59
- }, {
- "term" : 23,
- "count" : 58
- } ]
- },
- "educations" : {
- "_type" : "terms",
- "missing" : 6,
- "total" : 983,
- "other" : 0,
- "terms" : [ {
- "term" : 1,
- "count" : 284
- }, {
- "term" : 2,
- "count" : 267
- }, {
- "term" : 3,
- "count" : 229
- }, {
- "term" : 4,
- "count" : 203
- } ]
- },
- "vacsite_focus" : {
- "_type" : "terms",
- "missing" : 0,
- "total" : 651,
- "other" : 0,
- "terms" : [ {
- "term" : "Generiek",
- "count" : 275
- }, {
- "term" : "Vakgerelateerd",
- "count" : 255
- }, {
- "term" : "Branche",
- "count" : 79
- }, {
- "term" : "SocialMedia",
- "count" : 19
- }, {
- "term" : "Regionaal",
- "count" : 15
- }, {
- "term" : "",
- "count" : 8
- } ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement