mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport ctl.ImportCommand.IndexOptions
This commit is contained in:
parent
7185c0f791
commit
f9a792ea49
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ type ImportCommand struct {
|
|||
Field string `json:"field"`
|
||||
|
||||
// Options for index & field to be created if they don't exist
|
||||
IndexOptions pilosa.IndexOptions
|
||||
indexOptions pilosa.IndexOptions
|
||||
|
||||
// CreateSchema ensures the schema exists before import
|
||||
CreateSchema bool
|
||||
|
|
@ -130,7 +130,7 @@ func (cmd *ImportCommand) Run(ctx context.Context) error {
|
|||
}
|
||||
|
||||
func (cmd *ImportCommand) ensureSchema(ctx context.Context) error {
|
||||
err := cmd.Client.EnsureIndex(ctx, cmd.Index, cmd.IndexOptions)
|
||||
err := cmd.Client.EnsureIndex(ctx, cmd.Index, cmd.indexOptions)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error Creating Index: %s", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue