-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
>docsGeneral docs changesGeneral docs changes
Description
Hiya
Following the examples in your docs, create-mapping does not seem to work, eg:
curl -XPUT http://localhost:9200/twitter/tweet -d '
{
tweet : {
properties : {
message : {type : "string", store : "yes"}
}
}
}
'
No handler found for uri [/twitter/tweet] and method [PUT]
I tried creating the index first, but same thing.
Also, the JSON format for specifying the mapping type to use when indexing a document is ambiguous, eg:
curl -XPUT http://localhost:9200/twitter/tweet/1 -d \
'
{
tweet : {
user : "kimchy",
postDate : "2009-11-15T14:12:12",
message : "trying out Elastic Search"
}
}
'
Does that mean that the document has mapping type 'tweet', or that there is no mapping type specified, and it has a single top level key called 'tweet'.
And one thing i'm not sure about? Is a mapping the same thing as a type? So you would never have type 'foo' and mapping 'bar'?
thanks
Clint
Metadata
Metadata
Assignees
Labels
>docsGeneral docs changesGeneral docs changes