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 (20 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 3015 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.
Issues with Schema Creation and Nested Fields
Sean encountered a problem with schema creation involving auto nested fields. Kishore Nallan suggested checking the API response for errors and adding problematic fields to the schema as optional. Sean confirmed the advice.
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.