Stefan Hesse
02/12/2022, 12:25 PMingredients: [
{
name: "chicken",
concentration: num
}
]
And then filter for it like this:
ingredients.name = 'chicken' AND ingredients.concentration >= 5
Where ingredients should refer to the same nested Object
While writing this I realized that this is probably way too much for typesense or any search engine to cover. This is something for a database. Asking it anyway just in case I am missing something.
Only idea I have to cover this use case is to go crazy and flatten the ingredients array like this:
chicken.present: bool
chicken.concentration: num
But given that there can be thousands of ingredients this would probably not scale well.Stefan Hesse
02/12/2022, 12:26 PMKishore Nallan
02/12/2022, 12:32 PMKishore Nallan
02/12/2022, 12:33 PMStefan Hesse
02/12/2022, 12:33 PMStefan Hesse
02/12/2022, 12:35 PMKishore Nallan
02/12/2022, 12:38 PMStefan Hesse
02/12/2022, 12:41 PM