Github user alessandrobenedetti commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/389#discussion_r223764522
--- Diff:
lucene/queries/src/test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java ---
@@ -186,6 +200,117 @@ public void testMultiValues() throws Exception {
analyzer.close();
}
+ public void
testLiveMapDocument_minTermFrequencySet_shouldBuildQueryAccordingToCorrectTermFrequencies()
throws Exception {
+ MoreLikeThis mlt = new MoreLikeThis(reader);
+ Analyzer analyzer = new MockAnalyzer(random(),
MockTokenizer.WHITESPACE, false);
+ mlt.setAnalyzer(analyzer);
+ mlt.setMinDocFreq(0);
+ mlt.setMinTermFreq(3);
+ mlt.setMinWordLen(1);
+ String sampleField1 = "text";
--- End diff --
move to class constant
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]