This message was deleted.
# community-help
s
This message was deleted.
p
I have been thinking about jamming all data into a single collection instead and for example a
type
field to specify the type of document and nested objects for each type of collection.
I think I can then list the fields in a certain order to help with ranking, for example:
query_by=typeA.field1,typeB.field1,typeA.field2
d
I had similar task, we tested two approaches: • Find similarities between entities and create one meta-collection only with interesting fields like title, content, pageviews, hierarchy, etc. • Or create collection with two fields,
raw
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 experience
➕ 1
p
Thanks for your insights!