implement addCriteriaToPositionQuery method in content model. #360