Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

don't use the deprecated API in the documentation example

Daniel Naber8a37ed97d94a
diff --git a/src/java/org/apache/lucene/search/Sort.java b/src/java/org/apache/lucene/search/Sort.java
index d3b35340833..eea965e0baf 100644
--- a/src/java/org/apache/lucene/search/Sort.java
+++ b/src/java/org/apache/lucene/search/Sort.java
@@ -29,8 +29,8 @@ import java.io.Serializable;
* and does not need to be stored (unless you happen to want it back with the
* rest of your document data). In other words:
*
- * <dl><dd><code>document.add (new Field ("byNumber", Integer.toString(x), false, true, false));</code>
- * </dd></dl>
+ * <p><code>document.add (new Field ("byNumber", Integer.toString(x), Field.Store.NO, Field.Index.UN_TOKENIZED));</code></p>
+ *
*
* <p><h3>Valid Types of Values</h3>
*