Using TypeSense without Query String for Sorting Documents
TLDR Sidharth asked about using TypeSense without a query string for sorting. Jason suggested setting the q parameter to * and using the sort_by param.
Powered by Struct AI
1
4
5mo
Solved
May 12, 2023 (5 months ago)
Sidharth
Sidharth
06:48 PMHello Team,
Is there a way to use TypeSense with NO query str but just Sorting the documents basis some attribute and get as an output??
Thanks
Is there a way to use TypeSense with NO query str but just Sorting the documents basis some attribute and get as an output??
Thanks
Jason
Jason
06:49 PMYup, you can set the q parameter to *
06:49
Jason
06:49 PMAnd then use sort_by param
Sidharth
Sidharth
06:55 PMGot it,
Thanks Jason for lightening fast response ๐
We'll Try this ๐
Thanks Jason for lightening fast response ๐
We'll Try this ๐
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Handling Empty Searches in Typesense
Ahmed inquired about Typesense's handling of empty searches. Jason explained the default behavior and suggested controlling the ranking using sort_by.
4
21mo
Solved
Solving Typesense Cloud Interface Issue in Python
Orion had an issue querying from Python in the Typesense Cloud interface. Kishore Nallan identified the problem within the array declaration. They then discussed improving error messages and Orion offered to make a PR.
47
12mo
Solved
Querying to Delete Documents without Specific Field
Serezha inquired about a query to delete documents missing certain fields, to which Kishore Nallan explained that it's unfeasible due to Typesense's storage behavior.
2
8mo
Solved