solr文档的文档结构如下所述,我需要提取具有event_name="product view"
的文档并通过电子邮件将其分组,以便电子邮件不会重复。现在在列出电子邮件时如何对唯一电子邮件进行分页。由于查询返回的文档总数不是组数
"docs":[
{
"id":"1",
"email":"xxxxxx@gmail.com",
"gender":"M",
"location":["yyy"],
"created":123444,
"event_name":"product viewed",
"event_property":"product",
"event_value":"sun glassed",
"_version_":1617201602734587904,
"location_str":["yyyy"]
},
{
"id":"4",
"email":"xxxxxx@gmail.com",
"gender":"F",
"location":["zzzz"],
"created":123447,
"event_name":"Add To Cart",
"event_property":"Name",
"event_value":"sun glasses",
"_version_":1617202784870858752,
"location_str":["zzzz"]
},
{
"id":"5",
"email":"xxxxxx@gmail.com",
"gender":"M",
"location":["kkkkk"],
"created":123464,
"event_name":"Product Clicked",
"event_property":"Category",
"event_value":"Contact Lens",
"_version_":1617202784871907328,
"location_str":["lllll"]
}
]