Hi :wave: - are there any resources on schema desi...
# community-help
j
Hi 👋 - are there any resources on schema design best practices anybody can point me at? I've looked through the docs and Googled. I'm trying to understand when it's best to split different types of content into separate collections. I've tried splitting and realised that multi-search returns results for each collection separately. In my case (Zettle-Kasten notes and Kindle book highlights) the content seems closely related enough that ranking across seems to make sense i.e. I want the most relevant hits across both collections. Thanks in advance for any tips and 🙏 for creating Typesense, I've only just started using but fits my needs really well and awesome to work with so far.
k
👋 The text match score associated on the result documents in a particular collection can actually be compared with results from another collection. So even though the results are returned separately, if you wish, you can merge and sort them client side based on the value of the text match score.
Usually splitting is done only when the collections are of different entities entirely, for e.g. books vs authors vs publishers. Otherwise, you can probably use a field to differentiate records of different kinds.
j
Thanks Kishore that's really helpful to know about the text_match score and your confirmed my hunch on when to split and not. 🙏🏾
👍 1