diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java index 8f2b072e110..7d1e6f1dbe9 100644 --- a/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java +++ b/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java @@ -112,7 +112,7 @@ public class DefaultSimilarity extends TFIDFSimilarity { numTerms = state.getLength() - state.getNumOverlap(); else numTerms = state.getLength(); - return state.getBoost() * ((float) (1.0 / Math.sqrt(numTerms))); + return state.getBoost() * ((float) (1.0 / Math.sqrt(numTerms))); } /** Implemented as sqrt(freq). */