Issue with Object Field Validation in Emplace Mode
TLDR Elian identified a problem with object field validation in emplace mode. Jason provided a patch in the new build, which Elian confirmed resolved the issue.



Aug 06, 2023 (1 month ago)
Elian
12:21 PM• I defined an object "price" and fields below that, e.g. "price.default.ch.price". Those are optional:false
• If I create a document or import them via create, it fails with an error if a required field fails
• If I import the documents with mode emplace, it returns an error, but still imports it which invalidates the data in the schema
• Follow-up actions on the schema such as adding a field are not possible anymore
Attached a shell script to reproduce it - let me know if I missed anything
Kishore Nallan
02:08 PM
Aug 08, 2023 (1 month ago)
Jason
06:34 PM0.25.0.rc62
. Could you upgrade to it and let me know if you still see this issue?
Jason
06:34 PMElian
06:35 PM
Elian
06:43 PM
Jason
06:46 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Handling Kinesis Stream Event Batching with Typesense
Dui had questions about how to handle Kinesis stream events with Typesense. Kishore Nallan suggested using upsert mode for creation/update and differentiating with logical deletion. After various discussions including identifying and resolving a bug, they finalized to introduce an `emplace` action in Typesense v0.23.


Resolving Error with Incorrect Field Type during Schema Update
Samuel encountered an error updating the schema for an existing collection. Kishore Nallan suggested specifying a concrete type, and later found inconsistent data within the collection that caused the error.


Issue with Field Indexing and Multiple Data Types
Raymond encountered an issue where a field seemed to be indexed twice and hence couldn't be deleted. Jason advised upgrading to a patch version, but the problem remained. Kishore Nallan suspected a race condition and an issue with conflicting data types. An effective solution wasn't achieved.


