DXP 7.2 Service Pack 1 (SP1)/Fix Pack 2 (FP2)では、起動時にInvalidTypeNameExceptionエラーが発生するため、Elastisearch 6.2以上が必要となります。

問題

DXP 7.2 SP1 /FP2にElasticsearch 6.0または6.1を設定した場合、起動時に以下のエラーが発生します。

Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds] [dxp] ERROR [main][IndexSynchronizationPortalInitializedListener:93] bundle com.liferay.portal.search.elasticsearch6.impl:3.0.34 (545)[com.liferay.portal.search.elasticsearch6.internal.index.IndexSynchronizationPortalInitializedListener(2459)] : The activate method has thrown an exception 
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds] InvalidTypeNameException[mapping type name [_doc] can't start with '_']
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:384)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:350)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:274)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$IndexCreationTask.execute(MetaDataCreateIndexService.java:444)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:640)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:270)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:195)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:130)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:568)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:247)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:210)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at java.lang.Thread.run(Thread.java:748)

決議

同義語結果ランキング などの検索チューニング機能(SP1 /FP2以降で利用可能)は、検索エンジンとしてElasticsearch 6.2.0以上が必要です。 サポートされているElasticsearchのバージョン一覧は、 Liferay DXP 7.2 Compatibility Matrix を参照してください。

関連記事

この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています