From 2e2d3dac916041e3c24a6aa8c9d928d281885cde Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 21 Feb 2012 22:29:03 +0000 Subject: [PATCH] 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 --- .../src/java/org/apache/lucene/search/QueryUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java b/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java index c45f67ef39f..bcb281d08d3 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java +++ b/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java @@ -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; }