lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r818505 - /lucene/solr/trunk/src/java/org/apache/solr/search/function/QueryValueSource.java
Date Thu, 24 Sep 2009 15:02:35 GMT
Author: yonik
Date: Thu Sep 24 15:02:35 2009
New Revision: 818505

URL: http://svn.apache.org/viewvc?rev=818505&view=rev
Log:
SOLR-1459: add null scorer check to QueryValueSource.java too

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/function/QueryValueSource.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/function/QueryValueSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/function/QueryValueSource.java?rev=818505&r1=818504&r2=818505&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/function/QueryValueSource.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/function/QueryValueSource.java Thu Sep
24 15:02:35 2009
@@ -91,6 +91,7 @@
       if (doc < lastDocRequested) {
         // out-of-order access.... reset scorer.
         scorer = weight.scorer(reader, true, false);
+        if (scorer==null) return defVal;
         scorerDoc = -1;
       }
       lastDocRequested = doc;



Mime
View raw message