Apache Lucene open-source search software
SOLR-789: The javadoc of RandomSortField is not readable
Koji Sekiguchi774153b89100
diff --git a/CHANGES.txt b/CHANGES.txtindex ccd4dae455d..0746d5cff40 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -57,7 +57,7 @@ BuildDocumentation-----------------------+ 1. SOLR-789: The javadoc of RandomSortField is not readable (Nicolas Lalevée via koji)diff --git a/src/java/org/apache/solr/schema/RandomSortField.java b/src/java/org/apache/solr/schema/RandomSortField.javaindex ecbef67c356..145ddb71c67 100644--- a/src/java/org/apache/solr/schema/RandomSortField.java+++ b/src/java/org/apache/solr/schema/RandomSortField.java@@ -32,27 +32,30 @@ import org.apache.solr.search.function.ValueSource;/*** Utility Field used for random sorting. It should not be passed a value.- *+ * <p>* This random sorting implementation uses the dynamic field name to set the* random 'seed'. To get random sorting order, you need to use a random* dynamic field name. For example, you will need to configure schema.xml:- *- * <types>+ * <pre>+ * <types>* ...- * <fieldType name="random" class="solr.RandomSortField" />+ * <fieldType name="random" class="solr.RandomSortField" />* ...- * </types>- * <fields>+ * </types>+ * <fields>* ...- * <dynamicField name="random*" type="rand" indexed="true" stored="false"/>+ * <dynamicField name="random*" type="rand" indexed="true" stored="false"/>* ...- * </fields>+ * </fields>+ * </pre>*- * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_1234%20desc- * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_2345%20desc- * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_ABDC%20desc- * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_21%20desc- *+ * Examples of queries:+ * <ul>+ * <li>http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_1234%20desc</li>+ * <li>http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_2345%20desc</li>+ * <li>http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_ABDC%20desc</li>+ * <li>http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_21%20desc</li>+ * </ul>* Note that multiple calls to the same URL will return the same sorting order.** @version $Id$