Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

failed to put mappings on indices [[test]], type [test] #3

Open
anbu992003 opened this issue Jul 14, 2014 · 3 comments
Open

failed to put mappings on indices [[test]], type [test] #3

anbu992003 opened this issue Jul 14, 2014 · 3 comments

Comments

@anbu992003
Copy link

curl -XPUT 'localhost:9200/test/test/_mapping' -d '{

"test": {
    "properties": {
        "my_img": {
            "type": "image",
            "feature": {
                "CEDD": {
                    "hash": "BIT_SAMPLING"
                },
                "JCD": {
                    "hash": ["BIT_SAMPLING", "LSH"]
                },
                "FCTH": {}
            },
            "metadata": {
                "jpeg.image_width": {
                    "type": "string",
                    "store": "yes"
                },
                "jpeg.image_height": {
                    "type": "string",
                    "store": "yes"
                }
            }
        }
    }
}

}'

[2014-07-14 18:16:16,641][DEBUG][action.admin.indices.mapping.put] [Ikthalon] failed to put mappings on indices [[test]], type [test]
org.elasticsearch.index.mapper.MapperParsingException: No handler for type [image] declared on field [my_img]
at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:256)
at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parse(ObjectMapper.java:216)
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:203)
at org.elasticsearch.index.mapper.DocumentMapperParser.parseCompressed(DocumentMapperParser.java:185)
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:387)
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:377)
at org.elasticsearch.cluster.metadata.MetaDataMappingService$5.execute(MetaDataMappingService.java:540)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:308)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
{"error":"MapperParsingException[No handler for type [image] declared on field [my_img]]","status":400}

@kadishmal
Copy link

Have you restarted the ElasticSearch after installing this plugin?

@bhardwajD
Copy link

what is the alternative way to image indexing and searching in ES 2.4, as elasticsearch-image is not working on the same.

Thanks in advance for the help

@kadishmal
Copy link

kadishmal commented Sep 13, 2016

I suggest going with machine learning. There are many open source tools nowadays which didn't exist couple years ago. You can start from:

I hope this will help you get started.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants