Mercurial > hg > thermostat-ng > agent
changeset 1745:79df35f1ff13
Upgrade to Lucene 5.1.0.
Reviewed-by: omajid
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2015-May/013891.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Fri, 29 May 2015 18:38:40 +0200 |
parents | fbe787e737fe |
children | 6e836359b658 |
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 Fri May 29 16:32:41 2015 +0200 +++ b/pom.xml Fri May 29 18:38:40 2015 +0200 @@ -260,8 +260,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 Fri May 29 16:32:41 2015 +0200 +++ b/vm-heap-analysis/common/src/main/java/com/redhat/thermostat/vm/heap/analysis/common/HeapDump.java Fri May 29 18:38:40 2015 +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; @@ -141,7 +140,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();