Zhen Jun
08/01/2025, 8:01 AM{
"searches": [
{
"collection": "leads",
"facet_by": "status, $lead-contact-linkages($wa-bot-contacts(sequence_ids)), owner",
"q": "*"
}
]
}
Only the facet for status
is returned.Kishore Nallan
08/01/2025, 8:03 AM30.0.rc6
Zhen Jun
08/01/2025, 8:03 AMKishore Nallan
08/01/2025, 8:04 AMZhen Jun
08/01/2025, 8:11 AMKishore Nallan
08/01/2025, 8:17 AMZhen Jun
08/01/2025, 8:53 AMfirst_name
is not returned in facet_counts
?
https://gist.github.com/seowzhenjun0126/c6d73de222823786f14b8ba3020fc9beKishore Nallan
08/01/2025, 8:54 AMZhen Jun
08/01/2025, 8:57 AMfacet_by
only includes the reference field (in this case $authors(first_name)
), then the facet is returned correctly.Harpreet Sangar
08/01/2025, 9:03 AMfilter_by
to use the facet_by
feature. So you'll have to specify $lead-contact-linkages($wa-bot-contacts(id:*))
in filter_by to facet_by on $lead-contact-linkages($wa-bot-contacts(sequence_ids))
.Zhen Jun
08/01/2025, 9:13 AMfilter_by
, but the facet is still not returned. Could you run the gist and see if you are able to reproduce the error?Harpreet Sangar
08/01/2025, 9:13 AMHarpreet Sangar
08/01/2025, 1:25 PM$authors(first_name)
in facet_by produces results for you?Harpreet Sangar
08/01/2025, 1:30 PMHarpreet Sangar
08/01/2025, 1:31 PM$authors(first_name), title
produces results but not other way around.Zhen Jun
08/01/2025, 1:32 PMtitle
causes the first_name
to not returnHarpreet Sangar
08/04/2025, 4:17 PMZhen Jun
08/20/2025, 5:11 AMZhen Jun
08/21/2025, 1:09 PMHarpreet Sangar
08/25/2025, 4:54 AMZhen Jun
08/25/2025, 5:22 AMJimmy
09/02/2025, 6:04 AMfilter_by: $authors(id:*),
facet_by: $authors(first_name, last_name)
(assuming the document had a last_name)
from the PR's tests, it seems like it should work?Harpreet Sangar
09/02/2025, 6:09 AMJimmy
09/02/2025, 6:10 AMHarpreet Sangar
09/02/2025, 6:10 AMJimmy Hui
09/02/2025, 10:24 AMJimmy Hui
09/02/2025, 10:25 AM