SOLR-2636: Fix explain functionality for negative queries.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1143238 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2011-07-06 01:18:33 +00:00
parent 0a3f804518
commit 64410c6b88
2 changed files with 7 additions and 0 deletions

View File

@ -300,6 +300,8 @@ Bug Fixes
* SOLR-2631: PingRequestHandler should not allow to ping itsself using "qt"
param to prevent infinite loop. (Edoardo Tosca, Uwe Schindler)
* SOLR-2636: Fix explain functionality for negative queries. (Tom Hill via yonik)
Other Changes
----------------------

View File

@ -1843,6 +1843,11 @@ public class SolrIndexSearcher extends IndexSearcher implements SolrInfoMBean {
return openTime;
}
@Override
public Explanation explain(Query query, int doc) throws IOException {
return super.explain(QueryUtils.makeQueryable(query), doc);
}
/////////////////////////////////////////////////////////////////////
// SolrInfoMBean stuff: Statistics and Module Info
/////////////////////////////////////////////////////////////////////