Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public void testSortedDocValuesSingleUniqueValue() throws IOException {
try (Directory directory = newDirectory()) {
Analyzer analyzer = new MockAnalyzer(random());
IndexWriterConfig conf = newIndexWriterConfig(analyzer);
conf.setCodec(getCodec());
conf.setMergePolicy(newLogMergePolicy());
try (RandomIndexWriter iwriter = new RandomIndexWriter(random(), directory, conf)) {
for (int i = 0; i < NUM_DOCS; i++) {
Expand Down Expand Up @@ -95,6 +96,7 @@ public void testSortedSetDocValuesSingleUniqueValue() throws IOException {
try (Directory directory = newDirectory()) {
Analyzer analyzer = new MockAnalyzer(random());
IndexWriterConfig conf = newIndexWriterConfig(analyzer);
conf.setCodec(getCodec());
conf.setMergePolicy(newLogMergePolicy());
try (RandomIndexWriter iwriter = new RandomIndexWriter(random(), directory, conf)) {
for (int i = 0; i < NUM_DOCS; i++) {
Expand Down Expand Up @@ -132,6 +134,7 @@ public void testSortedSetDocValuesSingleUniqueValue() throws IOException {

public void testOneDocManyValues() throws Exception {
IndexWriterConfig config = new IndexWriterConfig();
config.setCodec(getCodec());
try (Directory dir = newDirectory(); IndexWriter writer = new IndexWriter(dir, config)) {
int numValues = 128 + random().nextInt(1024); // > 2^7 to require two blocks
Document d = new Document();
Expand Down Expand Up @@ -159,6 +162,7 @@ public void testManyDocsWithManyValues() throws Exception {
final Map<String, long[]> sortedNumbers = new HashMap<>(); // key -> numbers
try (Directory directory = newDirectory()) {
IndexWriterConfig conf = newIndexWriterConfig();
conf.setCodec(getCodec());
try (RandomIndexWriter writer = new RandomIndexWriter(random(), directory, conf)) {
for (int i = 0; i < numDocs; i++) {
Document doc = new Document();
Expand Down