Text query function works with key-value matching wand optional index narrowing