Skip to main content
GET
/
api
/
v2
/
search
/
{id}
Busca documento por ID em qualquer coleção configurada (v2)
curl --request GET \
  --url https://services.pref.rio/app-busca-search/api/v2/search/{id} \
  --header 'Authorization: Bearer <token>'
{
  "collection": "<string>",
  "data": {},
  "id": "<string>",
  "score_info": {
    "final_score": 123,
    "hybrid_score": 123,
    "passed_threshold": true,
    "recency_factor": 123,
    "text_match_normalized": 123,
    "threshold_applied": "<string>",
    "threshold_value": 123,
    "vector_similarity": 123
  },
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID do documento (UUID)

Query Parameters

collection
string

Collection hint para busca otimizada

Response

OK

collection
string

Which collection this document belongs to

data
object

Raw document data from Typesense

id
string
score_info
object
type
string

Document type from collection config (service, course, job, etc.)