You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there's two domain defined in same package, which all contains field with same value like
class DummyDomain1 {
String label
}
class DummyDomain2 {
String label
}
Then the system will failed to start with follow exception, could you please advice which settings could be used to fix this issue? thanks.
I have tried to use alias with no luch.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-06-25 07:07:20.349 ERROR [ restartedMain] org.springframework.boot.SpringApplication@reportFailure@823 : Application run failed
java.lang.IllegalArgumentException: Mapper for [label] conflicts with existing mapping in other types:
[mapper [label] is used by multiple types. Set update_all_types to true to update [boost] across all types.]
at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:130)
at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:94)
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:400)
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:336)
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:260)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:371)
at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45)
at org.elasticsearch.cluster.service.ClusterService.executeTasks(ClusterService.java:634)
at org.elasticsearch.cluster.service.ClusterService.calculateTaskOutputs(ClusterService.java:612)
at org.elasticsearch.cluster.service.ClusterService.runTasks(ClusterService.java:571)
at org.elasticsearch.cluster.service.ClusterService$ClusterServiceTaskBatcher.run(ClusterService.java:263)
at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150)
at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:247)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:210)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Handle domain in same package contains same field
The text was updated successfully, but these errors were encountered:
There are some changes I need to do before releasing the one to support Grails 4. I would soon work on updating the master branch with changes from 2.7 and release a milestone version.
Hi,
When there's two domain defined in same package, which all contains field with same value like
Then the system will failed to start with follow exception, could you please advice which settings could be used to fix this issue? thanks.
I have tried to use alias with no luch.
Handle domain in same package contains same field
The text was updated successfully, but these errors were encountered: