Bamboo.Prevalence.Indexing.SearchHit.Combine C# (CSharp) Method

Combine() public method

combines two search hits that refer to the same record. all the extended properties such as ranking and index specific information should be combined.
public Combine ( SearchHit other ) : void
other SearchHit the SearchHit that /// should be combined to this one
return void
		public void Combine(SearchHit other)
		{
		}

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Adds a new item to the collection of items
        /// returned by the search. If the hit
        /// represents an existing record it
        /// will be combined to the existing hit instead.
        /// </summary>
        /// <param name="hit">the hit to be added or
        /// combined to a existing hit</param>
        public void Add(SearchHit hit)
        {
            SearchHit existing = FindSearchHit(hit.Record);

            if (null != existing)
            {
                existing.Combine(hit);
            }
            else
            {
                _hits.Add(hit);
            }
        }
All Usage Examples Of Bamboo.Prevalence.Indexing.SearchHit::Combine