public PerFieldSimilarityWrapperHelper(Similarity ssBar, Similarity ssYak, Similarity ssA, Similarity ssB, Similarity ss)
 {
     this.ssBar = ssBar;
     this.ssYak = ssYak;
     this.ssA = ssA;
     this.ssB = ssB;
     this.ss = ss;
 }
 public static float ComputeAndDecodeNorm(SweetSpotSimilarity decode, Similarity encode, FieldInvertState state)
 {
     return decode.DecodeNormValue(ComputeAndGetNorm(encode, state));
 }
 public static byte ComputeAndGetNorm(Similarity s, FieldInvertState state)
 {
     return (byte)s.ComputeNorm(state);
 }
Beispiel #4
0
 /// <summary>
 /// Creates a MultiSimilarity which will sum the scores
 /// of the provided <code>sims</code>.
 /// </summary>
 public MultiSimilarity(Similarity[] sims)
 {
     this.Sims = sims;
 }