changeset 1956:4c4656f5bab4

Upgrade to Lucene 5.1.0. Reviewed-by: neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-June/019921.html PR3056
author Severin Gehwolf <sgehwolf@redhat.com>
date Wed, 29 Jun 2016 16:35:40 +0200
parents da2c18e537ab
children 92eed4d29c16
files pom.xml vm-heap-analysis/common/src/main/java/com/redhat/thermostat/vm/heap/analysis/common/HeapDump.java
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pom.xml	Wed Jun 29 09:33:10 2016 -0400
+++ b/pom.xml	Wed Jun 29 16:35:40 2016 +0200
@@ -172,8 +172,8 @@
     <commons-fileupload.version>1.2.2</commons-fileupload.version>
 
     <jline.version>2.9</jline.version>
-    <lucene.version>4.7.0_1</lucene.version>
-    <lucene.osgi-version>4.7.0.1</lucene.osgi-version>
+    <lucene.version>5.1.0_1</lucene.version>
+    <lucene.osgi-version>5.1.0.1</lucene.osgi-version>
     <lucene-analysis.bundle.symbolic-name>org.apache.servicemix.bundles.lucene-analyzers-common</lucene-analysis.bundle.symbolic-name>
     <lucene-core.bundle.symbolic-name>org.apache.servicemix.bundles.lucene</lucene-core.bundle.symbolic-name>
     <!--
--- a/vm-heap-analysis/common/src/main/java/com/redhat/thermostat/vm/heap/analysis/common/HeapDump.java	Wed Jun 29 09:33:10 2016 -0400
+++ b/vm-heap-analysis/common/src/main/java/com/redhat/thermostat/vm/heap/analysis/common/HeapDump.java	Wed Jun 29 16:35:40 2016 +0200
@@ -66,7 +66,6 @@
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.store.LockObtainFailedException;
 import org.apache.lucene.store.RAMDirectory;
-import org.apache.lucene.util.Version;
 
 import com.redhat.thermostat.common.utils.LoggingUtils;
 import com.redhat.thermostat.vm.heap.analysis.common.model.HeapInfo;
@@ -143,7 +142,7 @@
 
         Enumeration<JavaHeapObject> thingos = snapshot.getThings();
         Directory dir = new RAMDirectory();
-        IndexWriterConfig indexWriterConfig = new IndexWriterConfig(Version.LUCENE_47, new SimpleAnalyzer(Version.LUCENE_47));
+        IndexWriterConfig indexWriterConfig = new IndexWriterConfig(new SimpleAnalyzer());
         IndexWriter writer = new IndexWriter(dir, indexWriterConfig);
         while (thingos.hasMoreElements()) {
             JavaHeapObject thingo = thingos.nextElement();