Hi there. I am trying to send a document to a coll...
# community-help
e
Hi there. I am trying to send a document to a collection but getting an error that the type of object we are sending up is not valid.
Copy code
Typesense::Error::RequestMalformed (Type of field `exmaple` is invalid.)
I believe that this is because it's an array of arrays but as we are not asking for this to be indexed or faceted, I thought it wouldn't be a problem. We also have an issue with an array of objects... I'm guessing this is the same problem. Are these data types not accepted at all, or do you think there's an issue with the schema?
j
@Edward Sparks You should be able to send fields with any data type as long as they're not part of the schema. Could you share the schema you're using and a sample document?
e
I will do. I did check that this field wasn't present on the schema but we do have the 'auto' type set? Would that be the cause of it?
Feel like i've answered my own question there
j
If you have a field name as
.*
and type as
auto
then yes that would be the issue, since all fields will be indexed
You could mark specific fields as unindexed by still adding it to the schema and setting it to
index: false
🙌 1
e
ah. that makes a lot of sense. Thank you for this. Again...
j
Happy to help!