Good afternoon! I ran into a weird issue with a "p...
# community-help
j
Good afternoon! I ran into a weird issue with a "popular_queries" analytics rule. I configured the popular queries collection and analytics rule per these docs: https://typesense.org/docs/27.1/api/analytics-query-suggestions.html#enabling-the-feature. I then did a multiSearch with two queries; the first query was a keyword search against my primary collection of documents, and the second search was
q=''
and
facet_by=myFacet
to fetch all possible values of a faceted field. If the keyword query was first in the multiSearch, the analytics rule always recorded
q=''
and never anything else. If I swapped the two queries (facet query first, keyword query second), the analytics rule began correctly recording the search keywords into the popular queries collection. Is this expected behavior?
k
Let me look into what is happening here and get back to you.