You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by alessandrobenedetti <gi...@git.apache.org> on 2018/10/09 16:01:41 UTC
[GitHub] lucene-solr pull request #389: [LUCENE-6687] not necessary nested for loop r...
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org