You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
schema.Index() and index.Field() are both get-or-create methods, but that means that if you specified options, you don't necessarily know that the options you specified are the same as the options already present.
In some cases, empty/default options promote to non-zero-value options, so it's not necessarily possible to trivially check whether the set of options in the schema returned by the server is incompatible with or different from user-specified options. The key weak points are the FieldTypeDefault and CacheTypeDefault values; for instance, if you explicitly specify a CacheType of "", you will end up with the default cache type of "ranked", but not until the field options are transmitted to the server, and the schema is queried again. (SyncSchema won't update the local copy to reflect this.)
Since these functions don't return errors, and haven't previously returned nil, it's unclear how to safely change the API for this. Don't have a good plan, filing issue so it doesn't get forgotten.
The text was updated successfully, but these errors were encountered:
schema.Index()
andindex.Field()
are both get-or-create methods, but that means that if you specified options, you don't necessarily know that the options you specified are the same as the options already present.In some cases, empty/default options promote to non-zero-value options, so it's not necessarily possible to trivially check whether the set of options in the schema returned by the server is incompatible with or different from user-specified options. The key weak points are the FieldTypeDefault and CacheTypeDefault values; for instance, if you explicitly specify a CacheType of
""
, you will end up with the default cache type of"ranked"
, but not until the field options are transmitted to the server, and the schema is queried again. (SyncSchema
won't update the local copy to reflect this.)Since these functions don't return errors, and haven't previously returned nil, it's unclear how to safely change the API for this. Don't have a good plan, filing issue so it doesn't get forgotten.
The text was updated successfully, but these errors were encountered: