mirror of https://github.com/apache/lucene.git
Use AccessController.doPrivileged
This commit is contained in:
parent
b527e101e7
commit
429bad659c
|
@ -733,7 +733,9 @@ public class IndexSearcher {
|
|||
rewrittenQuery = query.rewrite(this)) {
|
||||
query = rewrittenQuery;
|
||||
}
|
||||
if (maxClauseCount > -1) {
|
||||
query.visit(getNumClausesCheckVisitor());
|
||||
}
|
||||
return query;
|
||||
}
|
||||
|
||||
|
|
|
@ -99,5 +99,11 @@ public abstract class QueryVisitor {
|
|||
}
|
||||
|
||||
/** A QueryVisitor implementation that does nothing */
|
||||
public static final QueryVisitor EMPTY_VISITOR = new QueryVisitor() {};
|
||||
public static final QueryVisitor EMPTY_VISITOR =
|
||||
new QueryVisitor() {
|
||||
@Override
|
||||
public boolean acceptField(String field) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue