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 2017/10/02 13:43:21 UTC

lucene-solr:branch_7x: LUCENE-7974: make NearestHit public, and add javadocs, to make precommit happy

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 765418433 -> b1d4c0156


LUCENE-7974: make NearestHit public, and add javadocs, to make precommit happy


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

Branch: refs/heads/branch_7x
Commit: b1d4c01568cf2b965bc2e97dc5edb274755ab72e
Parents: 7654184
Author: Mike McCandless <mi...@apache.org>
Authored: Mon Oct 2 09:42:17 2017 -0400
Committer: Mike McCandless <mi...@apache.org>
Committed: Mon Oct 2 09:42:42 2017 -0400

----------------------------------------------------------------------
 .../org/apache/lucene/document/FloatPointNearestNeighbor.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b1d4c015/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
----------------------------------------------------------------------
diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
index d3360a8..b7859d0 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java
@@ -193,7 +193,8 @@ public class FloatPointNearestNeighbor {
     }
   }
 
-  static class NearestHit {
+  /** Holds one hit from {@link FloatPointNearestNeighbor#nearest} */
+  public static class NearestHit {
     public int docID;
     public double distanceSquared;