Resolving Typesense Error for Invalid Field Types
TLDR Edward was facing a problem sending documents due to invalid field types. Jason helped to identify and resolve the issued by advising on the correct usage of the schema.
Apr 26, 2022 (18 months ago)
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?
Could you share the schema you're using and a sample document?
.*and type as
autothen yes that would be the issue, since all fields will be indexed
Indexed 2779 threads (79% resolved)
Fixing "bad json" error in Typesense 0.24
Adam experiences "bad json" error when creating collections in Typesense 0.24. Jason identifies a typo in the docs causing the error and helps troubleshoot additional errors.
Troubleshooting Collection Schema and Upsert Issue in Typesense
David was having trouble upserting data with id in Typesense. Jason clarified that 'id' didn't need to be included in the schema and suggested a correct approach for specifying unindexed fields. The issue was resolved when David identified a mistake related to the output format from Postgres.
Adding and Updating Collections in Typesense Server
sonu asked about methods to add and update collections in a Typesense server. Jason advised that documents can be added individually or in bulk, and updates can be batched using the import function, even with a small React app with a MySQL database.
Troubleshooting RequestMalformed Error in Schema Creation
Ailish had issues with creating a schema and received a "RequestMalformed Error". Jason advised making `"type": "auto"` fields optional and specifying the types upfront.
Troubleshooting Invalid Field Error in Firestore Document Indexing
Darren receives an error when indexing Firestore documents with empty array in "_grades" field. Jason suggests submitting a bug report and manually setting the schema. The user still experiences issues. Kishore Nallan reproduces the bug, but suggests a solution might exist with an explicit 'string' type definition. Further investigation is needed.