Sorting Results in Typesense and Handling Errors
TLDR Ramees asks about sorting results by distance in Typesense, entering a list of strings as a field, and resolving an error with fields
format. Kishore Nallan assists with these issues and advises on storing timestamps and proper authentication.
2
Jul 21, 2021 (28 months ago)
Ramees
11:29 AMKishore Nallan
11:30 AMRamees
11:30 AMKishore Nallan
11:31 AMKishore Nallan
11:31 AMRamees
11:32 AMKishore Nallan
11:32 AMRamees
11:33 AMKishore Nallan
11:33 AMJul 22, 2021 (28 months ago)
Ramees
05:47 AMKishore Nallan
05:48 AMRamees
05:49 AMRamees
06:22 AMRamees
06:22 AMfields
. It should be an array of objects containing name
, type
, optional
and facet
properties.Ramees
06:23 AMKishore Nallan
06:24 AMRamees
06:24 AM{
"name": "businessId",
"type": "string",
"index": false
},
{
"name": "businessName",
"type": "string",
"index": false
}
Ramees
06:26 AM{
"name": "BPS",
"fields": [
{
"name": "id",
"type": "string",
"index": false
},
{
"name": "name",
"type": "string",
},
{
"name": "address",
"type": "string",
"index": false
},
]
}
Ramees
06:26 AMKishore Nallan
06:30 AMKishore Nallan
06:30 AM> },
Kishore Nallan
06:31 AMid
field in the schema.Ramees
06:44 AM1
Ramees
06:59 AMKishore Nallan
07:01 AMRamees
07:05 AMRamees
07:05 AMKishore Nallan
07:06 AMRamees
07:10 AMKishore Nallan
07:11 AMRamees
07:13 AMKishore Nallan
07:14 AMRamees
07:14 AM1
Ramees
10:00 AMKishore Nallan
10:00 AMRamees
10:01 AM<http://xxxx-1.a1.typesense.net:443/collections/students/documents/search?q=search-term&query_by=name&auth=MySearchKey|xxxx-1.a1.typesense.net:443/collections/students/documents/search?q=search-term&query_by=name&auth=MySearchKey>
Ramees
10:01 AMKishore Nallan
10:02 AMRamees
10:02 AMKishore Nallan
10:03 AMRamees
10:03 AMRamees
10:04 AMKishore Nallan
10:04 AMShell
example here: https://typesense.org/docs/0.20.0/api/documents.html#searchKishore Nallan
10:05 AM"X-TYPESENSE-API-KEY": "FOO"
Ramees
10:05 AMKishore Nallan
10:11 AMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Querying and Indexing Multiple Elements Issues
Krish queried fields with multiple elements, which Kishore Nallan suggested checking `drop_tokens_threshold`. Krish wished to force OR mode for token, but Kishore Nallan admitted the feature was missing. Krish was able to resolve the issue with url encoding.
Troubleshooting Issues with DocSearch Hits and Scraper Configuration
Rubai encountered issues with search result priorities and ellipsis. Jason helped debug the issue and suggested using different versions of typesense-docsearch.js, updating initialization parameters, and running the scraper on a Linux-based environment. The issues related to hits structure and scraper configuration were resolved.
Cold Start Problem with Dynamic Collections
Adrian reported cold start issues with dynamic collections. Jason suggested using wildcard `*` for query_by parameters, upgrading to `0.25.0.rc34`, and clarified conventions. Adrian's issues were resolved but they reported a limitation that will potentially be addressed.
Using Aliases in Typesense Search Queries
Babin had a question about using aliases in Typesense search queries, specifically when passing collection names. Jason helped identify a misconfiguration and provided guidance, resolving the issue.
Understanding and Implementing Typesense Dart Library with Flutter
Alexandro sought help with the Typesense Dart library. Jason explained that the library is in progress, discussed utilizing other HTTP libraries, and provided detailed instructions on utilizing Typesense with Flutter. Alexandro provided feedback on the Typesense UI and expressed interest in creating a tutorial video.