Skip to main content
POST
/
api
/
v1
/
typesense
/
multi-search
Buscar em múltiplas coleções
curl --request POST \
  --url https://services.pref.rio/go/v1/api/v1/typesense/multi-search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collections": [
    "<string>"
  ],
  "params": {
    "exclude_fields": "<string>",
    "facet_by": "<string>",
    "facet_query": "<string>",
    "filter_by": "<string>",
    "highlight_fields": "<string>",
    "highlight_full_fields": "<string>",
    "include_fields": "<string>",
    "max_facet_values": 123,
    "num_typos": 123,
    "page": 123,
    "per_page": 123,
    "prefix": true,
    "q": "<string>",
    "query_by": "<string>",
    "sort_by": "<string>"
  }
}'
{
  "results": {},
  "total_found": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parâmetros de busca

collections
string[]

Lista de nomes das coleções para buscar

params
object

Parâmetros de busca

Response

OK

results
object

Mapa de resultados por coleção

total_found
integer