Fixed test failure

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1476206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2013-04-26 13:52:55 +00:00
parent 2bcdaaa114
commit bdd509f21d
1 changed files with 4 additions and 1 deletions

View File

@ -17,10 +17,12 @@ package org.apache.lucene.search.join;
* limitations under the License.
*/
import org.apache.lucene.analysis.MockAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.StringField;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.NoMergePolicy;
import org.apache.lucene.index.RandomIndexWriter;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.CachingWrapperFilter;
@ -50,7 +52,8 @@ public class TestBlockJoinSorting extends LuceneTestCase {
@Test
public void testNestedSorting() throws Exception {
final Directory dir = newDirectory();
final RandomIndexWriter w = new RandomIndexWriter(random(), dir);
final RandomIndexWriter w = new RandomIndexWriter(random(), dir, newIndexWriterConfig(TEST_VERSION_CURRENT,
new MockAnalyzer(random())).setMergePolicy(NoMergePolicy.COMPOUND_FILES));
List<Document> docs = new ArrayList<>();
Document document = new Document();