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

MapperParsingException[failed to parse]; nested: NoSuchMethodError #13

Closed
FabienO opened this issue Apr 7, 2015 · 1 comment
Closed

Comments

@FabienO
Copy link

FabienO commented Apr 7, 2015

Adding images seems to return an error. I can't index anything.

curl -XPOST 'localhost:9200/test/test' -d '{ "my_img": "iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAX0lEQVQYlZWRYQrAIAiFNQ/j6T2ev10v2HDTQQmPyD6foUTv4KmRxPQTeJRGowVVVcxM3H2duH8L+AYjoigV8OMKpw5GPrsvGK07GPkC7zof/floGltznl3KYtoNAoQuatt0CKG31GsAAAAASUVORK5CYII=" }';
{
    "error": "MapperParsingException[failed to parse]; nested: NoSuchMethodError[org.elasticsearch.index.mapper.ParseContext.externalValue(Ljava/lang/Object;)V]; ",
    "status": 400
}

Using es version 1.5.0 on Centos 7

Here's my mapping for confirmation

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

And the plugins for the node show the plugin for "image" added.

I'm pretty sure it's probably me doing something dumb, can you provide any help advice if so?

@FabienO
Copy link
Author

FabienO commented Apr 7, 2015

Downgraded elastic search to similar version used in examples and it works.

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

1 participant