Tim Molenaar
12/17/2025, 10:42 AMgroup_by to aggregate results in a union search the found-integer returns an incorrect number of results. In my case it is 84, whereas the actual (grouped) hits only has a size of 7. I can't use pagination on our website without the correct number of results. Is there a way to obtain the correct number of actual results?Tim Molenaar
12/17/2025, 10:45 AMconst body = {
union: true,
searches: [
{
collection: "collection_a",
q: "search term",
query_by: "field1,field2",
group_by: "field_x",
include_fields: "field1",
},
{
collection: "collection_b",
q: "search term",
query_by: "field3,field4",
group_by: "field_x",
include_fields: "field3",
},
],
};Fanis Tharropoulos
12/17/2025, 11:32 AMTim Molenaar
12/17/2025, 12:55 PMfound: 2 but returns found: 3 and 2 actual resultsFanis Tharropoulos
12/17/2025, 2:13 PMv30.0.rca34 ? The issue is not reproducible thereTim Molenaar
12/17/2025, 2:21 PMTim Molenaar
12/17/2025, 2:36 PMTim Molenaar
12/17/2025, 2:36 PMTim Molenaar
12/17/2025, 2:41 PMTim Molenaar
12/18/2025, 8:14 AM