lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r820948 - in /lucene/solr/trunk: CHANGES.txt src/java/org/apache/solr/search/QueryParsing.java
Date Fri, 02 Oct 2009 10:02:52 GMT
Author: ehatcher
Date: Fri Oct  2 10:02:51 2009
New Revision: 820948

URL: http://svn.apache.org/viewvc?rev=820948&view=rev
Log:
SOLR-1478: Enable sort by Lucene's docid

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/java/org/apache/solr/search/QueryParsing.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=820948&r1=820947&r2=820948&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Fri Oct  2 10:02:51 2009
@@ -339,7 +339,9 @@
 83. SOLR-1292: Add FieldCache introspection to stats.jsp and JMX Monitoring via
     a new SolrFieldCacheMBean.  (hossman)
 
-84. SOLR-1167: Solr Config now supports XInclude for XML engines that can support it. (Bryan
Talbot via gsingers)    
+84. SOLR-1167: Solr Config now supports XInclude for XML engines that can support it. (Bryan
Talbot via gsingers)
+
+85. SOLR-1478: Enable sort by Lucene docid.  (ehatcher)
 
 Optimizations
 ----------------------

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/QueryParsing.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/QueryParsing.java?rev=820948&r1=820947&r2=820948&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/QueryParsing.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/QueryParsing.java Fri Oct  2 10:02:51
2009
@@ -265,7 +265,9 @@
         else {
           lst[i] = new SortField(null, SortField.SCORE, true);
         }
-      } 
+      } else if ("#".equals(part)) {
+        lst[i] = new SortField(null, SortField.DOC, top);
+      }
       else {
         // getField could throw an exception if the name isn't found
         SchemaField f = null;



Mime
View raw message