$ boolean query serialize to flag