lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1135533 - in /lucene/dev/branches/branch_3x/solr: CHANGES.txt src/java/org/apache/solr/schema/RandomSortField.java
Date Tue, 14 Jun 2011 12:48:41 GMT
Author: yonik
Date: Tue Jun 14 12:48:41 2011
New Revision: 1135533

URL: http://svn.apache.org/viewvc?rev=1135533&view=rev
Log:
SOLR-2554: RandomSortField didn't work when used in a function query

Modified:
    lucene/dev/branches/branch_3x/solr/CHANGES.txt
    lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/schema/RandomSortField.java

Modified: lucene/dev/branches/branch_3x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/CHANGES.txt?rev=1135533&r1=1135532&r2=1135533&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/solr/CHANGES.txt Tue Jun 14 12:48:41 2011
@@ -166,6 +166,9 @@ Bug Fixes
 * SOLR-2539: VectorValueSource.floatVal incorrectly used byteVal on sub-sources.
   (Tom Liu via yonik)
 
+* SOLR-2554: RandomSortField didn't work when used in a function query. (yonik)
+
+
 Other Changes
 ----------------------
 

Modified: lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/schema/RandomSortField.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/schema/RandomSortField.java?rev=1135533&r1=1135532&r2=1135533&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/schema/RandomSortField.java
(original)
+++ lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/schema/RandomSortField.java
Tue Jun 14 12:48:41 2011
@@ -25,6 +25,7 @@ import org.apache.lucene.index.IndexRead
 import org.apache.lucene.search.*;
 import org.apache.solr.response.TextResponseWriter;
 import org.apache.solr.response.XMLWriter;
+import org.apache.solr.search.QParser;
 import org.apache.solr.search.function.DocValues;
 import org.apache.solr.search.function.ValueSource;
 import org.apache.solr.search.SolrIndexReader;
@@ -96,7 +97,7 @@ public class RandomSortField extends Fie
   }
 
   @Override
-  public ValueSource getValueSource(SchemaField field) {
+  public ValueSource getValueSource(SchemaField field, QParser parser) {
     return new RandomValueSource(field.getName());
   }
 



Mime
View raw message