Joaquín Pérez
02/13/2025, 12:22 AMk
param and then refine the search results using a filter, then the facet counts stop making sense (which I understand, since k
is limiting the number of hits for the filtered query, not the original query). This behavior can be seen here: https://hn-comments-search.typesense.org. Just search for something and then apply a filter, you'll see that the facet count changes.
• If I don't set k
, but set distance_threshold
together with per_page
I only get results for the 1st page (never more than per_page
number of hits), regardless of the distance_threshold
value.
• The results for these two approaches show different hits, so they're ranking them differently for some reason, why is that? 🤔Joaquín Pérez
02/13/2025, 12:24 AM28.0.rc29
Jason Bosco
02/13/2025, 3:10 AMk
is not explicitly set, k
defaults to using per_page
, which is why you only ever see per_page
number of resultsJason Bosco
02/13/2025, 3:11 AMk
is set is unfortunately a limitation of how semantic search and filtering work together. You want to set k
to a large enough value for your dataset for the effects to be less pronouncedJoaquín Pérez
02/13/2025, 11:13 AMper_page
when k
is not defined, instead of limited by the distance_threshold
?Joaquín Pérez
02/13/2025, 11:15 AMk
or per_page
forces me to limit the results of a semantic search manually, unlike keyword searchJason Bosco
02/15/2025, 12:47 AMJason Bosco
02/15/2025, 12:48 AMk
to a high number like 10000
with performance being the tradeoffJoaquín Pérez
02/15/2025, 2:18 AM