adding foreignIndex conf opt (#2239)

This commit is contained in:
Jacob Brinlee 2022-10-05 09:13:44 -05:00 committed by GitHub
parent 634c54e257
commit 694fb9b048
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1702,6 +1702,7 @@ type SchemaOptions struct {
TimeUnit string `json:"timeUnit"`
Base int64 `json:"base"`
Epoch time.Time `json:"epoch"`
ForeignIndex string `json:"foreignIndex"`
}
func (so SchemaOptions) asIndexOptions() *IndexOptions {
@ -1728,6 +1729,7 @@ func (so SchemaOptions) asFieldOptions() *FieldOptions {
timeUnit: so.TimeUnit,
base: so.Base,
epoch: so.Epoch,
foreignIndex: so.ForeignIndex,
}
}