I managed to open the ElasticSearch 1.3.4 index (which uses Lucene 4.9.1 under the hood). I also followed the instructions on the Ross Simpson blog , but that didn't work. According to him, I added an ElasticSearch dependency (in my case version 1.3.4) in pom.xml :
<dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>1.3.4</version> </dependency>
And also install the Lucene version (in my case 4.9.1) in pom.xml :
<lucene.version>4.9.1</lucene.version>
I updated META-INF/services/org.apache.lucene.codecs.PostingsFormat in the bank as shown below:
org.apache.lucene.codecs.lucene40.Lucene40PostingsFormat org.apache.lucene.codecs.lucene41.Lucene41PostingsFormat org.elasticsearch.index.codec.postingsformat.BloomFilterPostingsFormat org.elasticsearch.index.codec.postingsformat.Elasticsearch090PostingsFormat org.elasticsearch.search.suggest.completion.Completion090PostingsFormat
So far, the instructions are the same as on the blog. An additional step I took is updating META-INF/services/org.apache.lucene.codecs.Codec add the last line (I received an exception when opening the index that the codec named Lucene49 was not found):
org.apache.lucene.codecs.simpletext.SimpleTextCodec org.apache.lucene.codecs.appending.AppendingCodec org.apache.lucene.codecs.lucene49.Lucene49Codec
source share