Support » Plugin: ElasticPress » New posts in sub-site of a multisite setup are not getting indexed automatically

  • Hi,

    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-wide and 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 !

    https://wordpress.org/plugins/elasticpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone, please?

    Plugin Contributor Chris Wiegman

    (@chriswiegman)

    It does sound like perhaps you have found a bug. Given your circumstances I would recommend searching https://github.com/10up/ElasticPress/issues for your issue and posting it there if not found.

    @chris, thanks for your reply. The issue seems to be fixed in the latest version (1.8). Now the posts are getting automatically indexed.
    I don’t if it was the older version, or something elsewhere, but as soon as I updated the plugin and re-indexed all my posts, the problem seems to have fixed.
    I will comment again, if I notice a discrepancy.

    Thanks again to all the nice folks who helped create such a wonderful product!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New posts in sub-site of a multisite setup are not getting indexed automatically’ is closed to new replies.