This message was deleted.
# community-help
s
This message was deleted.
k
When do you get this error?
e
when trying to upsert docs, but looking at my schema
Copy code
{
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "content.employerSeal",
      "optional": true,
      "sort": false,
      "type": "string"
    },
should this be
"type": "string[]"
?
k
Yes correct
If content is an array of objects
e
it’s an array of strings or an empty array
k
Please post a sample doc
e
DM’d you the doc
k
Here the content is a simple object, but the
employerSeal
value itself is an array. So it must be
string[]
e
thanks, let me update that
is there a way to programmatically update the schema?
k
Yes check alter collection
e
thanks
👍 1
does this look ok?
im getting
Copy code
typesense.exceptions.ObjectNotFound: [Errno 404] Field `content.employerSeal` not found.
same on gui
k
Hmm that's strange. Cluster ID?
e
DM’d
k
I will check and get back to you
e
thanks
it just worked :S
k
Oh how did it work?
e
just added that optional to be true
k
I suspect some docs already on disk didn't have the field so it had to be made optional for the schema to be valid.
e
got it
@Jason Bosco we had a similar issue here but this was an issue when it was empty, now that I have data in
content.employerSeal
those are not working
k
Hi Ed, looks like that issue is still lurking in some form under the hood.
Can you please DM me a sample document so I can try debugging the indexing logic?
Actually I see that sample document from an earlier DM
When I create an empty collection with the schema and import that doc, it works, so it seems like the issue only happens in presence of the other docs in the collection. Will investigate further and get back to you.
e
Thank you. I got a sensitive customer. Plz let me know once you figure it out
k
Can you please DM me an exact document you are now trying to import but unable to and the corresponding collection? When I try to do this on a fresh collection and the document you had shared with me earlier, it's working.