From 5ceb81834df7a389dae70bfac3463493de99d41c Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 20 Oct 2009 11:59:53 +0000 Subject: [PATCH] LUCENE-1993: add maxDocFreq to MoreLikeThis git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@827042 13f79535-47bb-0310-9956-ffa450edef68 --- contrib/CHANGES.txt | 4 ++ .../lucene/search/similar/MoreLikeThis.java | 56 +++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/contrib/CHANGES.txt b/contrib/CHANGES.txt index d941b6d3515..3ba533ab9e4 100644 --- a/contrib/CHANGES.txt +++ b/contrib/CHANGES.txt @@ -53,6 +53,10 @@ New features any number of output parts, at the cost of doing multiple passes over the input index. (Andrzej Bialecki) + * LUCENE-1993: Add maxDocFreq setting to MoreLikeThis, to exclude + from consideration terms that match more than the specified number + of documents. (Christian Steinert via Mike McCandless) + Optimizations * LUCENE-1965, LUCENE-1962: Arabic-, Persian- and SmartChineseAnalyzer diff --git a/contrib/queries/src/java/org/apache/lucene/search/similar/MoreLikeThis.java b/contrib/queries/src/java/org/apache/lucene/search/similar/MoreLikeThis.java index 2abe0cfaa65..125e73e4632 100644 --- a/contrib/queries/src/java/org/apache/lucene/search/similar/MoreLikeThis.java +++ b/contrib/queries/src/java/org/apache/lucene/search/similar/MoreLikeThis.java @@ -128,6 +128,8 @@ import org.apache.lucene.util.PriorityQueue; *