Skip to content

Plugin Updated: Search


11 February 2021

23:58:35 GMT+0000

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