Bamboo.Prevalence.Indexing.FullText.Postings.Add C# (CSharp) Method

Add() public method

Adds a new occurrence of the term. The occurrence information (field and position) will be added to an existing Posting object whenever possible.
public Add ( IRecord record, IndexedField field, int position ) : void
record IRecord the record where the term was found
field IndexedField 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);
		}