mirror of https://github.com/apache/lucene.git
LUCENE-7496: Better toString for SweetSpotSimilarity
(cherry picked from commit c4b4830
)
This commit is contained in:
parent
c35c723bf5
commit
22b0d5f4d2
|
@ -61,6 +61,8 @@ Improvements
|
|||
* LUCENE-7439: FuzzyQuery now matches all terms within the specified
|
||||
edit distance, even if they are short terms (Mike McCandless)
|
||||
|
||||
* LUCENE-7496: Better toString for SweetSpotSimilarity (janhoy)
|
||||
|
||||
Optimizations
|
||||
|
||||
* LUCENE-7501: BKDReader should not store the split dimension explicitly in the
|
||||
|
|
|
@ -223,4 +223,20 @@ public class SweetSpotSimilarity extends ClassicSimilarity {
|
|||
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("SweetSpotSimilarity")
|
||||
.append("(")
|
||||
.append("ln_min="+ln_min+", ")
|
||||
.append("ln_max=").append(ln_max).append(", ")
|
||||
.append("ln_steep=").append(ln_steep).append(", ")
|
||||
.append("tf_base=").append(tf_base).append(", ")
|
||||
.append("tf_min=").append(tf_min).append(", ")
|
||||
.append("tf_hyper_min=").append(tf_hyper_min).append(", ")
|
||||
.append("tf_hyper_max=").append(tf_hyper_max).append(", ")
|
||||
.append("tf_hyper_base=").append(tf_hyper_base).append(", ")
|
||||
.append("tf_hyper_xoffset=").append(tf_hyper_xoffset)
|
||||
.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue