Skip to content
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

WP-CLI subcommand for retrieving current ES mapping #2379

Closed
tfrommen opened this issue Sep 29, 2021 · 2 comments
Closed

WP-CLI subcommand for retrieving current ES mapping #2379

tfrommen opened this issue Sep 29, 2021 · 2 comments
Assignees
Milestone

Comments

@tfrommen
Copy link
Contributor

Is your enhancement related to a problem? Please describe.
Using the wp elasticpress WP-CLI command, I am able to create and retrieve any or all indexes. However, I can put mappings only, but not retrieve.

Describe the solution you'd like
Add a new subcommand to do just that.

Describe alternatives you've considered
If I have access to WP-CLI, but don't have this subcommand, I could do the following:

wp shell

wp> wp_remote_retrieve_body( ElasticPress\Elasticsearch::factory()->remote_request( '[<index>/]_mapping' ) );

That is unneccesarily complicated.

Additional context

@tfrommen
Copy link
Contributor Author

This is addressed in #2378.

@felipeelia
Copy link
Member

Closed by #2414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants