Multi-Site – Command Line to Sync single site
-
First off, I gotta say that this is one of the most useful plugins I’ve ever seen for WordPress. I work with clients with tons of data and it’s the only thing that makes heaps of difference when installed.
I’m working with a multisite. One site has WooCommerce and one does not. When I run the normal command line for multisite:
wp elasticpress index –setup –network-wide
It only indexes 1352 entries. This is wrong. My WooCommerce store has tons of orders so I tried:
wp elasticpress index –setup –network-wide –post_type=”shop_order”
Which is the post type for orders, and it found 0.
When I have the ElasticPress plugin installed on each multi-site site individually, I can run the index from the WP dashboard and, for example, site #2 has 239,342 entries to index. That’s correct.
This is ok because technically I do want each search to be its own separate thing but my question is how do I run the index that my browser is running in the command line. Essentially, I’m looking to run a command line command to only index one site at a time but I don’t know how I would do that because multisites share all the same folders so I wouldn’t know where to run it from.
Any thoughts would be helpful. Thanks!
- The topic ‘Multi-Site – Command Line to Sync single site’ is closed to new replies.