Efficiently Retrieving Facets in Typesense
TLDR Todd asked if using an empty string for include_fields
returns facets. Jason and Dan suggested using 0
for per_page
to limit results.
1
1
1
Jul 06, 2022 (16 months ago)
Todd
05:37 PMinclude_fields
or something like that?Jason
05:54 PMinclude_fields
, you can also set per_page
to say 1 (not sure if 0 will work)1
Todd
05:55 PMJul 07, 2022 (16 months ago)
Dan
12:26 PM0
for per_page
works fine - at least on 0.23.1
1
Dan
12:27 PMTypesense
Indexed 2776 threads (79% resolved)
Similar Threads
Querying with Typesense-Js and Handling Null Values
michtio was querying using typesense-js and receiving fewer results than expected. Kishore Nallan suggested using different query parameters. Further discussion led to the handling of 'null' values and filtering syntax in the search queries. The thread ended with Jason offering migration support from Algolia to Typesense.
Removing Empty String from `facet_by` Result
Ivan reported an issue with `facet_by` returning an empty string. Kishore Nallan suggested setting the string to null and marking the field as "optional: true" in the schema.
Faceting Objects in Typesense
John wants to facet objects in Typesense, but faces issues. Kishore Nallan suggests creating a feature request on GitHub.