smileBeda
07/07/2024, 6:51 AMID
- that was perhaps not the best idea since while it did not cause issues on upsert or update, it seems to cause issues if I want to change it (probably it conflicts with native id
?)
I need to set it from index false to true.
Yet it won't let me:
raise ApiCall.get_exception(r.status_code)(r.status_code, error_message)
typesense.exceptions.RequestMalformed: [Errno 400] Only fields can be updated at the moment.
The code is pretty simple:
schema = {
'name': 'name_here',
'fields': [
{
'name' : 'ID',
'drop' : True
},
{
'name' : 'ID',
'type' : 'auto',
'index' : True,
'optional' : True
}
]
}
client.collections['tkt_posts'].update(schema)
Is there any solution?