Storing Documents with Multi-Category Facets
TLDR Ricardo wanted to know how to store a document with multiple categories as facets. Jason directed to add each category in a string[]
, and set category
as facet: true
. Ricardo appreciated Jason's detailed comparisons of Typesense and Algolia and suggested creating a case study.
1
1
Apr 30, 2021 (31 months ago)
Ricardo
06:31 PMJason
06:33 PMstring[]
called categories
and you'd add all categories that the record belongs to in that array fieldRicardo
06:35 PMdocument = {
'id': '124',
'title': 'Stark Industries to green energies',
'category': ['growth', 'tech']
}
Ricardo
06:35 PMJason
06:36 PMJason
06:36 PMcategory
as facet: true
in the collection schemaRicardo
06:37 PM1
Ricardo
06:38 PMYou should consider making your reply into some sort of document in the documentation or on the website
Ricardo
06:38 PMRicardo
06:38 PMJason
06:39 PMRicardo
06:39 PMJason
06:40 PMRicardo
06:43 PM"we've heard about teams successfully switching from Algolia to Typesense in production"
"we've deployed 100s of production-grade clusters on Typesense Cloud"
then the showcases although I had looked at those, but didn't notice the size of the datasets before.
Ricardo
06:44 PMJason
06:47 PM1
Typesense
Indexed 2786 threads (79% resolved)
Similar Threads
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.
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.
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.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.
Troubleshooting Typesense Document Import Error
Christopher had trouble importing 2.1M documents into Typesense due to memory errors. Jason clarified the system requirements, explaining the correlation between RAM and dataset size, and ways to tackle the issue. They both also discussed database-like query options.