filter documents implemented in loomp