now use a trie for predicate autocompletion. performs a lot better than simple javascript strpos