Typo? in Schema Mapping sample code of elasticsearch.org

Hi,

I think the wrong one written on the homepage makes sense.
But it doesn't seem to work.

*Wrong: *

$ curl -XPUT http://localhost:9200/twitter/user/_mapping -d '{
"properties" : {
"name" : { "type" : "string" }
}
}'

$ curl localhost:9200/twitter/user/_mapping?pretty=tue
{
"user" : {
"properties" : {
}
}
}

Correct:

curl -XPUT http://localhost:9200/twitter/user/_mapping -d '{
"user" : {
"properties" : {
"name" : { "type" : "string" }
}
}
}'

$ curl localhost:9200/twitter/uer/_mapping?pretty=true
{
"user" : {
"properties" : {
"name" : {
"type" : "string"
}
}
}
}

I fixed it.

On Sat, May 5, 2012 at 9:14 AM, Sato Takenori takenori.sato@gmail.comwrote:

Hi,

I think the wrong one written on the homepage makes sense.
But it doesn't seem to work.

*Wrong: *

$ curl -XPUT http://localhost:9200/twitter/user/_mapping -d '{

"properties" : {
    "name" : { "type" : "string" }
}

}'

$ curl localhost:9200/twitter/user/_mapping?pretty=tue
{
"user" : {
"properties" : {
}
}
}

Correct:

curl -XPUT http://localhost:9200/twitter/user/_mapping -d '{
"user" : {
"properties" : {
"name" : { "type" : "string" }
}
}
}'

$ curl localhost:9200/twitter/uer/_mapping?pretty=true
{
"user" : {
"properties" : {
"name" : {
"type" : "string"
}
}
}
}