Revert "[elasticsearch] Fix boolean filtering logic"

This reverts commit 880657ebdc849afd74cfd16bfdccb11db271555f.