Skip to content

Commit 34e122f

Browse files
tarzanekVladimir Kotal
authored andcommitted
lucene 8.6
1 parent b3041a9 commit 34e122f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
import javax.ws.rs.core.Response;
5858
import org.apache.lucene.analysis.Analyzer;
5959
import org.apache.lucene.analysis.standard.StandardAnalyzer;
60-
import org.apache.lucene.codecs.lucene50.Lucene50StoredFieldsFormat;
61-
import org.apache.lucene.codecs.lucene84.Lucene84Codec;
6260
import org.apache.lucene.document.DateTools;
6361
import org.apache.lucene.document.Document;
6462
import org.apache.lucene.document.Field;
@@ -410,13 +408,6 @@ public void update() throws IOException {
410408
IndexWriterConfig iwc = new IndexWriterConfig(analyzer);
411409
iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);
412410
iwc.setRAMBufferSizeMB(env.getRamBufferSize());
413-
/**
414-
* Most data in OpenGrok is indexed but not stored, so use the best
415-
* compression on the minority of data that is stored, since it
416-
* should not have a detrimental impact on overall throughput.
417-
*/
418-
iwc.setCodec(new Lucene84Codec(
419-
Lucene50StoredFieldsFormat.Mode.BEST_COMPRESSION));
420411
writer = new IndexWriter(indexDirectory, iwc);
421412
writer.commit(); // to make sure index exists on the disk
422413
completer = new PendingFileCompleter();

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Portions Copyright (c) 2018, 2020, Chris Fraire <[email protected]>.
6060
</scm>
6161

6262
<properties>
63-
<lucene.version>8.5.2</lucene.version>
63+
<lucene.version>8.6.0</lucene.version>
6464
<mavenjavadocplugin.version>3.0.1</mavenjavadocplugin.version>
6565
<compileSource>1.8</compileSource>
6666
<compileTarget>1.8</compileTarget>

0 commit comments

Comments
 (0)