Skip to content

Commit

Permalink
fix SignificanceLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase committed Sep 20, 2023
1 parent 7ce7fdf commit 94116f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ private long getBackgroundFrequency(Query query) throws IOException {
if (backgroundFilter != null) {
query = new BooleanQuery.Builder().add(query, Occur.FILTER).add(backgroundFilter, Occur.FILTER).build();
}
// return new IndexSearcher(context.searcher().getIndexReader()).count(query);
return context.searcher().count(query);
return new IndexSearcher(context.searcher().getIndexReader()).count(query);
// return context.searcher().count(query);
}

private TermsEnum getTermsEnum(String field) throws IOException {
Expand Down

0 comments on commit 94116f3

Please sign in to comment.