Apache Lucene open-source search software
LUCENE-4169 LUCENE-4175 mark Lucene spatial classes as @lucene.experimental or @lucene.internal and did a little javadoc enhancement
David Wayne Smiley9418494277b5
diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/AreaSimilarity.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/AreaSimilarity.javaindex e110216405c..d7ad91ee3b7 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/AreaSimilarity.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/AreaSimilarity.java@@ -39,8 +39,11 @@ import com.spatial4j.core.shape.Rectangle;* <br/> targetFactor = Math.pow(targetRatio,targetPower);* <br/> score = queryFactor * targetFactor;* <p/>- * original:- * http://geoportal.svn.sourceforge.net/svnroot/geoportal/Geoportal/trunk/src/com/esri/gpt/catalog/lucene/SpatialRankingValueSource.java+ * Based on Geoportal's+ * <a href="http://geoportal.svn.sourceforge.net/svnroot/geoportal/Geoportal/trunk/src/com/esri/gpt/catalog/lucene/SpatialRankingValueSource.java">+ * SpatialRankingValueSource</a>.+ *+ * @lucene.experimental*/public class AreaSimilarity implements BBoxSimilarity {/**diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxFieldInfo.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxFieldInfo.javaindex 34612f8e642..8b8a510c25f 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxFieldInfo.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxFieldInfo.java@@ -21,7 +21,9 @@ import org.apache.lucene.spatial.SpatialFieldInfo;/*** The Bounding Box gets stored as four fields for x/y min/max and a flag- * that says if the box crosses the dateline (xdl)+ * that says if the box crosses the dateline (xdl).+ *+ * @lucene.experimental*/public class BBoxFieldInfo implements SpatialFieldInfo {diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarity.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarity.javaindex 5a152ce035a..d0779207038 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarity.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarity.java@@ -20,8 +20,9 @@ import org.apache.lucene.search.Explanation;import com.spatial4j.core.shape.Rectangle;--+/**+ * @lucene.experimental+ */public interface BBoxSimilarity {public double score(Rectangle extent, Explanation exp);diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarityValueSource.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarityValueSource.javaindex be776d1b4cf..12434e3eef4 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarityValueSource.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxSimilarityValueSource.java@@ -32,6 +32,8 @@ import com.spatial4j.core.shape.simple.RectangleImpl;/*** An implementation of the Lucene ValueSource model to support spatial relevance ranking.+ *+ * @lucene.experimental*/public class BBoxSimilarityValueSource extends ValueSource {diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxStrategy.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxStrategy.javaindex 84deb734a27..97f5a4743c0 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxStrategy.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/BBoxStrategy.java@@ -44,8 +44,10 @@ import com.spatial4j.core.shape.*;/**- * original:- * http://geoportal.svn.sourceforge.net/svnroot/geoportal/Geoportal/trunk/src/com/esri/gpt/catalog/lucene/SpatialClauseAdapter.java+ * Based on GeoPortal's+ * <a href="http://geoportal.svn.sourceforge.net/svnroot/geoportal/Geoportal/trunk/src/com/esri/gpt/catalog/lucene/SpatialClauseAdapter.java">SpatialClauseAdapter</a>.+ *+ * @lucene.experimental*/public class BBoxStrategy extends SpatialStrategy<BBoxFieldInfo> {public double queryPower = 1.0;diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.javaindex 5e93d7eb22d..64b5ee52c29 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.java@@ -1,21 +1,3 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/*** Bounding Box Spatial Strategy*