more straightforward QueryPIndexHandler