You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/09/12 09:56:13 UTC

lucene-solr:branch_6_2: LUCENE-7436: make constructor and default settings public for MinMashFilter

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6_2 b34f9b6fe -> 84dfd1937


LUCENE-7436: make constructor and default settings public for MinMashFilter


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/84dfd193
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/84dfd193
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/84dfd193

Branch: refs/heads/branch_6_2
Commit: 84dfd1937e20418d330e3b96d6c6b8ccfc202c27
Parents: b34f9b6
Author: Mike McCandless <mi...@apache.org>
Authored: Fri Sep 9 10:52:37 2016 -0400
Committer: Mike McCandless <mi...@apache.org>
Committed: Mon Sep 12 05:56:01 2016 -0400

----------------------------------------------------------------------
 lucene/CHANGES.txt                                           | 7 +++++++
 .../org/apache/lucene/analysis/minhash/MinHashFilter.java    | 8 ++++----
 2 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/84dfd193/lucene/CHANGES.txt
----------------------------------------------------------------------
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 4e4078d..fdc6d03 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -3,6 +3,13 @@ Lucene Change Log
 For more information on past and future Lucene versions, please see:
 http://s.apache.org/luceneversions
 
+======================= Lucene 6.2.1 =======================
+
+API Changes
+
+* LUCENE-7436: MinHashFilter's constructor, and some of its default
+  settings, should be public.  (Doug Turnbull via Mike McCandless)
+
 ======================= Lucene 6.2.0 =======================
 
 API Changes

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/84dfd193/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
index 61c816d..772f58a 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
@@ -49,11 +49,11 @@ public class MinHashFilter extends TokenFilter {
 
   private static final LongPair[] cachedIntHashes = new LongPair[HASH_CACHE_SIZE];
 
-  static final int DEFAULT_HASH_COUNT = 1;
+  public static final int DEFAULT_HASH_COUNT = 1;
 
-  static final int DEFAULT_HASH_SET_SIZE = 1;
+  public static final int DEFAULT_HASH_SET_SIZE = 1;
 
-  static final int DEFAULT_BUCKET_COUNT = 512;
+  public static final int DEFAULT_BUCKET_COUNT = 512;
 
   static final String MIN_HASH_TYPE = "MIN_HASH";
 
@@ -112,7 +112,7 @@ public class MinHashFilter extends TokenFilter {
    * @param hashSetSize the no. of min hashes to keep
    * @param withRotation whether rotate or not hashes while incrementing tokens
    */
-  MinHashFilter(TokenStream input, int hashCount, int bucketCount, int hashSetSize, boolean withRotation) {
+  public MinHashFilter(TokenStream input, int hashCount, int bucketCount, int hashSetSize, boolean withRotation) {
     super(input);
     this.hashCount = hashCount;
     this.bucketCount = bucketCount;