Slackbot
10/02/2023, 4:37 AMKishore Nallan
10/02/2023, 4:43 AMSean Morningstar
10/02/2023, 5:10 AMvariants.option3 must be an array of string.",` Looking at the actual documents I do see that some of them have variants.option3 as null. I don't need to index null values as listed on this typesense article.
What is the best practice in this scenario? Drop null fields before inserting or turn them into an empty string?Kishore Nallan
10/02/2023, 5:11 AMSean Morningstar
10/02/2023, 5:12 AMSean Morningstar
10/02/2023, 5:13 AM{"name": ".*", "type": "auto" } ?Kishore Nallan
10/02/2023, 5:13 AMSean Morningstar
10/02/2023, 5:18 AMmy_schema = {
"name": collName,
"enable_nested_fields": True,
"fields": [
{"name": ".*", "type": "auto", "optional": True }
]
}
That's ok though i needed to type it out anyways for faceting.Kishore Nallan
10/02/2023, 5:25 AM