}
token = parser.nextToken();
if (token != XContentParser.Token.VALUE_STRING) {
throw new QueryParsingException(parseContext.index(), "[type] filter should have a value field, and the type name");
}
BytesRef type = parser.utf8Bytes();
// move to the next token
parser.nextToken();
Filter filter;
//LUCENE 4 UPGRADE document mapper should use bytesref as well?