UnifiedSearchResponse

Response from unified semantic search.

  • results
    Type: array object[] ยท UnifiedSearchResult[]

    Search results sorted by relevance score in descending order.

    A single search result with entity type, ID, relevance score, and payload.

    • id
      Type: string
      required

      Identifier of the matched entity.

    • item
      required

      Type-specific payload whose shape depends on the type field.

    • score
      Type: number | string Pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$Format: float
      required

      Relevance score in the range 0.0-1.0.

    • type
      Type: string
      required

      Entity type, e.g. "contact" or "company".

  • total
    Type: integer | string Pattern: ^-?(?:0|[1-9]\d*)$Format: int32

    Total number of results returned.