the field will only exist on certain types of objects which may not exist in a specific collection
j
Jason Bosco
09/29/2023, 10:01 PM
We require any fields that are being filtered on to be in the schema, so we can validate the filter before executing it. Otherwise it could lead to undefined behavior if we silently ignore unkown fields in a complex filter
Jason Bosco
09/29/2023, 10:01 PM
So if the filter names are known upfront, then it's best to add them to the schema as optional fields, so it's a known field to Typesense