I have just started using this plugin and it seems to me an excellent one.
But I am facing some issues here.
Not sure, if this is the way it is built, or being a novice, I have configured things incorrectly.
But here are steps I am doing:
1. Create a multisite install with 5 sites in it.
2. Created posts in each of the sites.
3. Executed the command
wp elasticpress index --setup --network-wide
4. Ran a search , the results came out fine
5. Added a new post to my main blog. And then ran a search.
6. Did not need to run the setup index command again. The search results included the new posts.
7 Added a new post to one of my sub-sites. And then ran a search.
6. The search results DID NOT include the new post. Had to run the setup index command again to get that post reflected in the search results.
Is there something I am doing wrong or is it supposed to be like this?
In case it is suppose to be like this, is there a way to index just the newly created post? Because, manually re-creating the network wide indices every time someone adds a posts is going to be quite an effort, especially there are going to be a few hundreds of sub-sites in the network.
Also, 2 more questions:
1. Do I have to modify WP_Query (to include sites=> ‘all’) to be able to search the entire network? I guess this way it needs a custom theme as it wont work with any default theme? Right now I am running the searches by modifying one file as I could not get it to work under pre-built themes.
2. What is the difference between
wp elasticpress index --setup --network-wideand
wp elasticpress put-mapping --network-wide?
Thanks again for your wonderful plugin. I cant wait to get my questions answered and use it in my live project !
- You must be logged in to reply to this topic.