This message was deleted.
# community-help
s
This message was deleted.
k
Check the api response. If some docs are not indexed due to some issues, the errors will be present in the api response
s
Thank you for this. I was looking in the typsesense logs for errors and forgot to check the import response. Error is `error":"Field
variants.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?
k
Add variants.option3 to schema and set it as optional field
s
Sounds good. I was planning on typing out the full schema anyways.
One other quick question. Does this accept optional as well
{"name": ".*", "type": "auto" }
?
k
Interesting question! I'm not sure can you try it out? I presume it must work.
s
Doesn't appear to work. Schema is
Copy code
my_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.
k
Thanks for confirming.
👍 1