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

Index single/some posts only in EP CLI #886

Closed
ivankristianto opened this issue Jul 9, 2017 · 3 comments
Closed

Index single/some posts only in EP CLI #886

ivankristianto opened this issue Jul 9, 2017 · 3 comments

Comments

@ivankristianto
Copy link
Contributor

ivankristianto commented Jul 9, 2017

Currently we can only re-indexing whole content or based on post type.
So i'm proposing to have indexing based on:

  1. Post Id(s): wp elasticpress index --post-ids=1,2,3,4,5
  2. Taxonomy: wp elasticpress index --taxonomy=category --tax-slug=art,poetry
  3. URL: wp elasticpress index --url=http://domain.dev/post-slug/

@tlovett1 what do you think?

@tlovett1
Copy link
Member

3 already exists (core WP-CLI functionality). Do you have a use case for 1 and 2?

@ivankristianto
Copy link
Contributor Author

ivankristianto commented Jul 11, 2017

For 1 & 2
Sometimes I just want to re-index only for certain posts or from some categories only.
This is not a typical daily case, but it would be nice if we can have that options.

This is happen when I debug EP + Gutenberg, where save_post failed to sync post to ES due to timeout. And I want to just sync for that post only rather than reindex the whole posts.

@dotancohen
Copy link
Contributor

Regarding idea number 1, I've implemented it here:
#1044

@allan23 allan23 closed this as completed Aug 30, 2018
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

4 participants