lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [43/51] [abbrv] lucene-solr:apiv2: LUCENE-7384: Tweak SpanWeight.buildSimWeight to reuse the existing similarity.
Date Thu, 21 Jul 2016 13:38:05 GMT
LUCENE-7384: Tweak SpanWeight.buildSimWeight to reuse the existing similarity.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/180f9562
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/180f9562
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/180f9562

Branch: refs/heads/apiv2
Commit: 180f9562aa9c1e271d8dce48ac5695d0612bf808
Parents: abb81e4
Author: David Smiley <dsmiley@apache.org>
Authored: Tue Jul 19 12:45:28 2016 -0400
Committer: David Smiley <dsmiley@apache.org>
Committed: Tue Jul 19 12:45:28 2016 -0400

----------------------------------------------------------------------
 .../core/src/java/org/apache/lucene/search/spans/SpanWeight.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/180f9562/lucene/core/src/java/org/apache/lucene/search/spans/SpanWeight.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/search/spans/SpanWeight.java b/lucene/core/src/java/org/apache/lucene/search/spans/SpanWeight.java
index c0b231e..4d08172 100644
--- a/lucene/core/src/java/org/apache/lucene/search/spans/SpanWeight.java
+++ b/lucene/core/src/java/org/apache/lucene/search/spans/SpanWeight.java
@@ -99,7 +99,7 @@ public abstract class SpanWeight extends Weight {
       i++;
     }
     CollectionStatistics collectionStats = searcher.collectionStatistics(query.getField());
-    return searcher.getSimilarity(true).computeWeight(boost, collectionStats, termStats);
+    return similarity.computeWeight(boost, collectionStats, termStats);
   }
 
   /**


Mime
View raw message