mirror of https://github.com/apache/lucene.git
dont call doExplain twice
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@882374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c62fb270d6
commit
613aca9471
|
@ -349,7 +349,7 @@ public class CustomScoreQuery extends Query {
|
|||
@Override
|
||||
public Explanation explain(IndexReader reader, int doc) throws IOException {
|
||||
Explanation explain = doExplain(reader, doc);
|
||||
return explain == null ? new Explanation(0.0f, "no matching docs") : doExplain(reader, doc);
|
||||
return explain == null ? new Explanation(0.0f, "no matching docs") : explain;
|
||||
}
|
||||
|
||||
private Explanation doExplain(IndexReader reader, int doc) throws IOException {
|
||||
|
|
Loading…
Reference in New Issue