public Add ( IRecord record, |
||
record | IRecord | the record where the term was found |
field | the field where the term was found | |
position | int | the position in the field where the term was found |
return | void |
public void Add(IRecord record, IndexedField field, int position)
{
Posting posting = _postings[record] as Posting;
if (null == posting)
{
posting = new Posting(record);
_postings[record] = posting;
}
posting.Occurrences.Add(field, position);
}