[elasticsearch] Prevent empty bulk_index call to mirror Solr backend behavior
[elasticsearch] Fix boolean filtering logic