Lucene.Net.Search.Weight.Normalize C# (CSharp) Method

Normalize() public abstract method

Assigns the query normalization factor to this.
public abstract Normalize ( float norm ) : void
norm float
return void
		public abstract void  Normalize(float norm);
		

Usage Example

 public override void Normalize(float norm, float topLevelBoost)
 {
     this.queryNorm = norm * topLevelBoost;
     queryWeight   *= this.queryNorm;
     // we normalize the inner weight, but ignore it (just to initialize everything)
     if (innerWeight != null)
     {
         innerWeight.Normalize(norm, topLevelBoost);
     }
 }
All Usage Examples Of Lucene.Net.Search.Weight::Normalize