Query parsing - document part WIP.