Bamboo.Prevalence.Indexing.FullText.Postings.Add C# (CSharp) 메소드

Add() 공개 메소드

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
리턴 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);
		}