mirror of https://github.com/apache/lucene.git
SOLR-1665: fix MTL break
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@993510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a579dd7d56
commit
50663b8570
|
@ -201,11 +201,13 @@ public class MoreLikeThisHandler extends RequestHandlerBase
|
|||
boolean dbgQuery = false, dbgResults = false;
|
||||
if (dbg == false){//if it's true, we are doing everything anyway.
|
||||
String[] dbgParams = req.getParams().getParams(CommonParams.DEBUG);
|
||||
for (int i = 0; i < dbgParams.length; i++) {
|
||||
if (dbgParams[i].equals(CommonParams.QUERY)){
|
||||
dbgQuery = true;
|
||||
} else if (dbgParams[i].equals(CommonParams.RESULTS)){
|
||||
dbgResults = true;
|
||||
if (dbgParams != null) {
|
||||
for (int i = 0; i < dbgParams.length; i++) {
|
||||
if (dbgParams[i].equals(CommonParams.QUERY)){
|
||||
dbgQuery = true;
|
||||
} else if (dbgParams[i].equals(CommonParams.RESULTS)){
|
||||
dbgResults = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue