Indices query/filter skip parsing altogether for irrelevant indices when possible

Closes #2416
Minor improvements to indices filter and query & updated docs

Slightly simplified indices filter and query parsers code
Trimmed down tests where possible