private void InitFieldType(string field, Type_e type)
{
this.type = type;
if (field == null)
{
if (type != Type_e.SCORE && type != Type_e.DOC)
{
throw new System.ArgumentException("field can only be null when type is SCORE or DOC");
}
}
else
{
this.field = field;
}
}