Apache Solr open-source search software
javadoc - add ord/rord warnings
Yonik Seeley811df4712141
diff --git a/src/java/org/apache/solr/search/function/OrdFieldSource.java b/src/java/org/apache/solr/search/function/OrdFieldSource.javaindex b92b0fcc3df..f3deed02d25 100644--- a/src/java/org/apache/solr/search/function/OrdFieldSource.java+++ b/src/java/org/apache/solr/search/function/OrdFieldSource.java@@ -36,6 +36,9 @@ import java.util.Map;* <p>* WARNING: ord() depends on the position in an index and can thus change when other documents are inserted or deleted,* or if a MultiSearcher is used.+ * <br>WARNING: as of Solr 1.4, ord() and rord() can cause excess memory use since they must use a FieldCache entry+ * at the top level reader, while sorting and function queries now use entries at the segment level. Hence sorting+ * or using a different function query, in addition to ord()/rord() will double memory use.* @version $Id$*/diff --git a/src/java/org/apache/solr/search/function/ReverseOrdFieldSource.java b/src/java/org/apache/solr/search/function/ReverseOrdFieldSource.javaindex 3231e2e6fee..30e8836b67e 100644--- a/src/java/org/apache/solr/search/function/ReverseOrdFieldSource.java+++ b/src/java/org/apache/solr/search/function/ReverseOrdFieldSource.java@@ -38,6 +38,11 @@ import java.util.Map;* <p>* WARNING: ord() depends on the position in an index and can thus change when other documents are inserted or deleted,* or if a MultiSearcher is used.+ * <br>+ * WARNING: as of Solr 1.4, ord() and rord() can cause excess memory use since they must use a FieldCache entry+ * at the top level reader, while sorting and function queries now use entries at the segment level. Hence sorting+ * or using a different function query, in addition to ord()/rord() will double memory use.+ ** @version $Id$*/