@@ -59,6 +59,7 @@ public void testSortedDocValuesSingleUniqueValue() throws IOException {
5959 try (Directory directory = newDirectory ()) {
6060 Analyzer analyzer = new MockAnalyzer (random ());
6161 IndexWriterConfig conf = newIndexWriterConfig (analyzer );
62+ conf .setCodec (getCodec ());
6263 conf .setMergePolicy (newLogMergePolicy ());
6364 try (RandomIndexWriter iwriter = new RandomIndexWriter (random (), directory , conf )) {
6465 for (int i = 0 ; i < NUM_DOCS ; i ++) {
@@ -95,6 +96,7 @@ public void testSortedSetDocValuesSingleUniqueValue() throws IOException {
9596 try (Directory directory = newDirectory ()) {
9697 Analyzer analyzer = new MockAnalyzer (random ());
9798 IndexWriterConfig conf = newIndexWriterConfig (analyzer );
99+ conf .setCodec (getCodec ());
98100 conf .setMergePolicy (newLogMergePolicy ());
99101 try (RandomIndexWriter iwriter = new RandomIndexWriter (random (), directory , conf )) {
100102 for (int i = 0 ; i < NUM_DOCS ; i ++) {
@@ -134,6 +136,7 @@ public void testSortedSetDocValuesSingleUniqueValue() throws IOException {
134136
135137 public void testOneDocManyValues () throws Exception {
136138 IndexWriterConfig config = new IndexWriterConfig ();
139+ config .setCodec (getCodec ());
137140 try (Directory dir = newDirectory (); IndexWriter writer = new IndexWriter (dir , config )) {
138141 int numValues = 128 + random ().nextInt (1024 ); // > 2^7 to require two blocks
139142 Document d = new Document ();
@@ -161,6 +164,7 @@ public void testManyDocsWithManyValues() throws Exception {
161164 final Map <String , long []> sortedNumbers = new HashMap <>(); // key -> numbers
162165 try (Directory directory = newDirectory ()) {
163166 IndexWriterConfig conf = newIndexWriterConfig ();
167+ conf .setCodec (getCodec ());
164168 try (RandomIndexWriter writer = new RandomIndexWriter (random (), directory , conf )) {
165169 for (int i = 0 ; i < numDocs ; i ++) {
166170 Document doc = new Document ();
0 commit comments