Skip to content

Commit 0cf5147

Browse files
authored
Upgrade lucene 9.12.3 -> 10.3.2 (#418)
1 parent 26b441c commit 0cf5147

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseLuceneSearch.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.labkey.jbrowse;
22

33
import jakarta.servlet.http.HttpServletResponse;
4-
import org.apache.catalina.connector.Response;
54
import org.apache.commons.lang3.StringUtils;
65
import org.apache.logging.log4j.Logger;
76
import org.apache.lucene.analysis.Analyzer;
@@ -68,10 +67,9 @@
6867
import java.util.Map;
6968
import java.util.Set;
7069
import java.util.StringTokenizer;
71-
import java.util.function.Predicate;
7270
import java.util.concurrent.ExecutorService;
7371
import java.util.concurrent.Executors;
74-
72+
import java.util.function.Predicate;
7573
import java.util.regex.Matcher;
7674
import java.util.regex.Pattern;
7775

@@ -486,7 +484,7 @@ public static class ForceMatchAllDocsCachingPolicy implements QueryCachingPolicy
486484
public boolean shouldCache(Query query) throws IOException {
487485
if (query instanceof BooleanQuery bq) {
488486
for (BooleanClause clause : bq) {
489-
if (clause.getQuery() instanceof MatchAllDocsQuery) {
487+
if (clause.query() instanceof MatchAllDocsQuery) {
490488
return true;
491489
}
492490
}

0 commit comments

Comments
 (0)