SOLR-1478: Enable sort by Lucene's docid

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@820948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2009-10-02 10:02:51 +00:00
parent 8997d47156
commit 014c0a392e
2 changed files with 6 additions and 2 deletions

View File

@ -339,7 +339,9 @@ New Features
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
----------------------

View File

@ -265,7 +265,9 @@ public class QueryParsing {
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;