pass wrap=false in queryutils temporarily, since we are causing insanity this way if the reader is already atomic

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1292063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-02-21 22:29:03 +00:00
parent d462d03077
commit 2e2d3dac91
1 changed files with 5 additions and 1 deletions

View File

@ -166,7 +166,11 @@ public class QueryUtils {
emptyReaders[0],
0 < edge ? r : emptyReaders[0])
};
IndexSearcher out = LuceneTestCase.newSearcher(new MultiReader(readers));
// TODO: fix me,
// wrapping causes insanity when we have an already-atomic reader?!
// IndexSearcher out = LuceneTestCase.newSearcher(new MultiReader(readers));
IndexSearcher out = LuceneTestCase.newSearcher(new MultiReader(readers), false);
out.setSimilarity(s.getSimilarity());
return out;
}