java.lang.IllegalArgumentException

mapper [hits] cannot be changed from type [long] to [int]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18445

  • mapper [hits] cannot be changed from type [long] to [int]
  • via GitHub by abcfy2
    , 1 year ago
    Mapper for [hits] conflicts with existing mapping in other types: [mapper [hits] cannot be changed from type [long] to [int]]
  • via GitHub by abcfy2
    , 1 year ago
    Mapper for [hits] conflicts with existing mapping in other types: [mapper [hits] cannot be changed from type [long] to [int]]
  • Stack trace

    • java.lang.IllegalArgumentException: mapper [hits] cannot be changed from type [long] to [int] at org.elasticsearch.index.mapper.MappedFieldType.checkTypeName(MappedFieldType.java:234) at org.elasticsearch.index.mapper.MappedFieldType.checkCompatibility(MappedFieldType.java:246) at org.elasticsearch.index.mapper.core.NumberFieldMapper$NumberFieldType.checkCompatibility(NumberFieldMapper.java:146) at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:151) at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:115) at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:340) at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:289) at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.applyRequest(MetaDataMappingService.java:303) at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.execute(MetaDataMappingService.java:230) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:468) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago