Mirko
(Mirko)
June 29, 2011, 7:11am
1
Hi Everyone,
changing my ES Version from 0.15.2 to 0.16.2 brake the startup of my
Application.
When starting the Application it checks wether an index exists or not.
If not its created programmaticlly with a json document for the index
structure.
With the new Version the Call to the CreateIndexRequestBuilder failed.
One of the stacktraces and the code for creating the Index is here:
CreateIndex.java
// indexConfig Structure: [ IndexName, IndexType | JsonData with indexInformation ]
private void createIndex(String[] indexConfig) {
IndicesAdminClient indicesAdminClient = client.admin().indices();
try {
ActionFuture<CreateIndexResponse> aFuture = null;
if (indexConfig.length == 3) {
String indexSchema = loadIndexSchema(indexConfig[2]);
aFuture = new CreateIndexRequestBuilder(indicesAdminClient, indexConfig[0]).addMapping(indexConfig[1], indexSchema).execute();
This file has been truncated. show original
ES_CREATE_INDEX_ERROR.txt
java.util.concurrent.ExecutionException: org.elasticsearch.ElasticSearchException: Guice creation errors:
1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.lucene.analysis.CharArraySet.copy(Lorg/apache/lucene/util/Version;Ljava/util/Set;)Lorg/apache/lucene/analysis/CharArraySet;
at org.elasticsearch.index.analysis.AnalysisService.<init>(AnalysisService.java:59)
at org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:293)
while locating org.elasticsearch.index.analysis.AnalysisService
for parameter 3 at org.elasticsearch.index.mapper.MapperService.<init>(MapperService.java:89)
at org.elasticsearch.index.mapper.MapperServiceModule.configure(MapperServiceModule.java:30)
while locating org.elasticsearch.index.mapper.MapperService
for parameter 2 at org.elasticsearch.index.percolator.PercolatorExecutor.<init>(PercolatorExecutor.java:177)
This file has been truncated. show original
idx.json
{
"log": {
"date_formats": [
"yyyy-MM-dd HH:mm:ss.SSS"
],
"properties": {
"idxLogname": {
"type": "string",
"index": "not_analyzed"
},
This file has been truncated. show original
Any idea or help would be appreciated. Thanks in advance.
Mirko
Mirko
(Mirko)
June 29, 2011, 7:17am
2
some additional Information:
ES is included in our application
its an local Node
index.analysis.analyzer.default.type is set to standard
kimchy
(Shay Banon)
June 29, 2011, 10:13am
3
You need to also include the updated Lucene version (3.1).
On Wednesday, June 29, 2011 at 10:17 AM, Mirko wrote:
some additional Information:
ES is included in our application
its an local Node
index.analysis.analyzer.default.type is set to standard