public Add ( |
||
field | field where the term /// was found | |
position | int | /// position in the field where the term was found |
return | void |
public void Add(IndexedField field, int position)
{
foreach (TermOccurrence to in InnerList)
{
if (to.Field == field)
{
to.Add(position);
return;
}
}
InnerList.Add(new TermOccurrence(field, position));
}