#1339·gorse

用户标签与项目与标签之间的直接关系是什么

作者: simanlx创建于 2026年7月16日更新于 2026年7月16日

gorse.InsertUser(client.User{ UserId: "bob", Labels: map[string]interface{}{ "company": "gorse", "location": "hangzhou, china", }, Comment: "Bob is a software engineer.", })

// Insert an item.
gorse.InsertItem(client.Item{
    ItemId:    "gorse-io:gorse",
    IsHidden:  false,
    Labels: map[string]interface{}{
        "topics": []string{"recommendation", "machine-learning"},
    },
    Categories: []string{"go"},
    Timestamp:  "2022-02-22",
    Comment:    "Gorse is an open-source recommender system.",
}

我能理解用户Labels是用户的偏好标签吗? 例如用户喜欢的身高、地区、颜色。用户Labels与tem的定义标准是什么? 我发现好像支持范围标签了。Min Max范围如何定义? 实在看懂用户与Item的Labels的关系。有没有相关的说明啊