Title: Plugin Updated: Search
Author: WordPress VIP Documentation
Published: February 11, 2021
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Plugin Updated: Search

# Plugin Updated: Search

---

 11 February 2021

23:58:35 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/plugin-updated-search-7/)

This change skips count validation on indexes that have no documents – these are
assumed uninitialized. This results in a special line in the CLI initiated report:

    ```
    $ wp vip-search health validate-counts
    Validating post count

    ✅ no inconsistencies found when counting entity: post, type: post, index_version: 2 - (DB: 5, ES: 5, Diff: 0)
    ✅ no inconsistencies found when counting entity: post, type: page, index_version: 2 - (DB: 1, ES: 1, Diff: 0)
    🟧 skipping, because there are no documents in ES when counting entity: post, type: post, index_version: 3
    🟧 skipping, because there are no documents in ES when counting entity: post, type: page, index_version: 3

    Validating user count

    ✅ no inconsistencies found when counting entity: user, type: N/A, index_version: 1 - (DB: 3, ES: 3, Diff: 0)
    ✅ no inconsistencies found when counting entity: user, type: N/A, index_version: 2 - (DB: 3, ES: 3, Diff: 0)
    ```

Also, the health cron job will not report mismatches for indexes with 0 documents.

[https://github.com/Automattic/vip-go-mu-plugins/pull/1976](https://github.com/Automattic/vip-go-mu-plugins/pull/1976)