-
Notifications
You must be signed in to change notification settings - Fork 1
service: ` search`
Daniele Guido edited this page Jun 1, 2018
·
1 revision
This service only implements find endpoint.
Two GET params need to be specified for search:
filters[]
and group
. This services accepts pagination via limit
, page
, offset
and order_by
Filters are computated in the given list order. The response displays an "info" object with parsed filters and facets.
query parameters:
filters[0][type]=String
filters[0][query]=simple text
filters[0][context]=include
group=article
facets[0]=newspaper
response
{
data: Array[10][
{
... <article:Article>,
score: .12,
matches: Array[2][
<match:Match>,
<match:Match>
],
}
],
total: 46039,
limit: 10,
skip: 0,
info:{
filters": Array[1][
{
"context": "include",
"type": "String",
"query": "simple text",
"_query": "*simple*text*",
"_isString": true
}
],
group: "article",
facets: Array[1][
{
field: "newspaper",
buckets:[
{
"val":"GDL",
"count":14322,
},
{
"val":"DDT",
"count":12432
},
{
"val":"ABC",
"count":2822,
}
]
}
}
}