Tag index

Just starting on this, not for merging yet, but feedback welcome.
It should be if that's what the ql is using to identify field types. Should I just be using that?