So far generating term and wildcard queries