PointGroup

@Serializable
data class PointGroup(val id: JsonPrimitive, val hits: List<ScoredPoint>, val lookup: Record? = null)

A group of hits sharing the same group_by value, returned by searchGroups.

Constructors

Link copied to clipboard
constructor(id: JsonPrimitive, hits: List<ScoredPoint>, lookup: Record? = null)

Properties

Link copied to clipboard
@SerialName(value = "hits")
val hits: List<ScoredPoint>

The scored points in this group.

Link copied to clipboard
@SerialName(value = "id")
val id: JsonPrimitive

The shared value of the group-by field (a string or number).

Link copied to clipboard
@SerialName(value = "lookup")
val lookup: Record?

A point looked up by the group id, when a with-lookup option is used.