Discrepancy in Result Counts for Facet_by and Filter_by
TLDR Ivan asked why result counts varied between facet_by and filter_by. Kishore Nallan suggested checking for multiple fields with the same string, which Ivan confirmed was the issue.
Apr 04, 2022 (19 months ago)
Ivan
10:47 AMfacet_by: referencetodocument,
facet_query: 823 bgb
it gives facet count 1499, but when i search for this:
facet_by: referencetodocument,
filter_by: 823 bgb
it gives only 1234 results
Kishore Nallan
11:35 AM823 bgb
?Ivan
03:09 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Understanding Facet Results in Typesense
Prabhu had difficulty understanding the count results of his facet results in Typesense. Kishore Nallan explained the behaviour and suggested creating a Github issue for a feature request to modify count behaviour.
Understanding Filtering, Faceting and Their Differences
Gabe inquired about using a boolean field for filtering, sparking a detailed discussion about the distinctions between filtering and faceting with Jason providing a comprehensive explanation.
Sorting Query Results by Facet Matching
Stefan inquires if there is a way to sort query results by "number of matched facets". Kishore Nallan indicates that it's impossible unless pre-computed as a field, prompting Stefan to clarify that their filter values are not static.