kzwang / elasticsearch-image

Content Based Image Retrieval Plugin for Elasticsearch. It allows users to index images and search for similar images.
http://demo.elasticsearch-image.com/
Apache License 2.0
407 stars 151 forks source link

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

Open anbu992003 opened 10 years ago

anbu992003 commented 10 years ago

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 commented 10 years ago

Have you restarted the ElasticSearch after installing this plugin?

bhardwajD commented 8 years ago

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 commented 8 years ago

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.