use both indexes in prefix query