-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create index, migrate data with console command? #36
Comments
The way I did it is : in it, changed The handle method looks like this :
Then you just call |
And what about creating of indeсes? |
Is it required to create index manually or how to create index "on fly" if it does not exist? |
I would suggest you create the indices manually, as you can specify the shards, replicas or other settings. My information might not be accurate, it's jut how I do it. You can wait for a response from sleimanx2 for certainty. |
Already use elasticsearch-HQ but how you see this in production? |
You just create the index on your production server ( with HQ or command), you do it once anyway. You specify the index in your plastic.php file, and that's it. No more configurations. |
You can create and delete indexes as follows Plastic::getClient()->indices()->delete(['index' => Plastic::getDefaultIndex()]);
Plastic::getClient()->indices()->create(['index' => Plastic::getDefaultIndex()]); added this section to documentation ... |
Thanks a lot. I think that need to add this code examples into readme |
No description provided.
The text was updated successfully, but these errors were encountered: