Hello,

I am using the Mapper Attachment Plugin. This is the mapping that I tried 
to use:

curl -XPUT localhost:9200/historicdata/docs/_mapping {"docs" : 
{"properties" : {"file" : {"type" : "attachment", "fields" : {"file" : 
{"index" : "no"}, "title" : {"store" : "yes"}, "keywords" : {"store" : 
"yes"}, "content_type" : {"store" : "yes"}, "content_length" : {"store" : 
"yes"} } } } } }
{"error":"NullPointerException[null]", "status": 500}curl: (3) [globbing] 
unmatched brace in column 1
curl: (6) Could not resolve host:
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: attachment,
curl: (6) Could not resolve host: fields
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 3
curl: (6) Could not resolve host: title
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 4
curl: (6) Could not resolve host: keywords
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 4
curl: (6) Could not resolve host: content_type
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 4
curl: (6) Could not resolve host: content_length
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 4
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1


I also tried this:

curl -XPUT 'localhost:9200/historicdata/docs/_mapping' -d '{ "docs": { 
"properties": { "file": { "type": "attachment", "fields": { "title": { 
"store": "yes" }, "file": {"store": "yes"} } } } } }'
{"error":"NoSuchMethodError[org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField(Lorg/elasticsearch/index/mapper/core/AbstractFieldMapper$Builder;Ljava/lang/String;Lorg/elasticsearch/index/mapper/Mapper$TypeParser$ParserContext;Ljava/lang/String;Ljava/lang/Object;)V]",
 
"status": 500}

When I run this curl -XPUT localhost:9200/historicdata/docs/_mapping { 
"docs": {"properties": { "file": { "type: "attachment"}}}}
{"error": "NullPointerException[null]", "status": 500} curl: (3) [globbing] 
unmatched brace in column1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL /index.html.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at docs Port 80</address>
</body></html>
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: properties
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: file
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: type
curl: (6) Could not resolve host: attachment
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1


I'm not sure what it is I deleted my index and created a new one, I don't 
have any documents in my index. 

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/852ed0a8-e1d4-4ff2-9d53-05e27d56d4b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to