unicode is not good for some class, like Decimal, unicode will convert it to "Decimal xxx",but not pure number string. This could cause error. However it can be solved by manually convert that variable to str.
But sometimes it cannot be avoided. For example,
delete just one field:
{
"id": 1,
"fieldToBeDelete": {"set": None}
}
"None" will be serialized to "None" but not null, and Solr server will accept it as a new value,rather than to delete this field. This may be terrible.
Can you fix this problem? or moreover provide a way to replace 'unicode' by some option?
unicode is not good for some class, like Decimal, unicode will convert it to "Decimal xxx",but not pure number string. This could cause error. However it can be solved by manually convert that variable to str.
But sometimes it cannot be avoided. For example,
delete just one field:
{
"id": 1,
"fieldToBeDelete": {"set": None}
}
"None" will be serialized to "None" but not null, and Solr server will accept it as a new value,rather than to delete this field. This may be terrible.
Can you fix this problem? or moreover provide a way to replace 'unicode' by some option?