optimize FilterData construction to generate fast postgres full text search queries