Handling Empty Searches in Typesense
TLDR Ahmed inquired about Typesense's handling of empty searches. Jason explained the default behavior and suggested controlling the ranking using sort_by.
Jan 24, 2022 (20 months ago)
Ahmed
04:48 PMJason
04:51 PM*
queries, Typesense will sort by the default sorting field if one is mentioned in the collection, otherwise it will fall back to the document insertion orderJason
04:52 PMJason
04:52 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Querying Empty Strings in Typesense Cloud - Collection Search
Loic wanted to query empty strings in Typesense, but Jason explained this needs to be done when indexing as Typesense doesn't support querying blank keys.
Limiting Typesense Search Results to Non-Empty Queries
A asked how to limit Typesense search results to non-empty queries. Jason provided an example using Instantsearch.js, referencing Typesense's song search project on GitHub.

Resolve Facets and Sorting Issues with Typesense
Ethan needed assistance with getting all facet values and sorting results by date using Typesense. Jason provided guidance on how to use Typesense properties to accomplish these tasks, and resolved issues related to specific use-cases provided by Ethan and Rushil.

