Slackbot
10/24/2023, 1:45 PMPatrick Tamstrup
10/24/2023, 1:46 PMtype field to specify the type of document and nested objects for each type of collection.Patrick Tamstrup
10/24/2023, 1:47 PMquery_by=typeA.field1,typeB.field1,typeA.field2Dima
10/24/2023, 1:58 PMraw object and searchable string[]. Store raw entity in raw field, and extract all searchable strings into searchable.
First approach works better when entities are kinda similar, e.g. “documentation articles”, but comes from different sources and some of them lacks of attributes other than very generic like title and content. Second approach works better when you have no idea what exactly you’re going to store. It works fine, but you cannot use any typesense features like highlights, weights, and custom sorting.
You can also try to manage sorting by yourself, looking at text_match_score across all collections, but it kinda painful to do when you also want to use pagination.
Maybe someone from community can also share their experiencePatrick Tamstrup
10/24/2023, 1:59 PM