explicit query length and pos