Implemented weighted term queries