md_2
(md-2)
May 5, 2012, 6:14am
1
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"
}
}
}
}
kimchy
(Shay Banon)
May 9, 2012, 8:31am
2
I fixed it.
On Sat, May 5, 2012 at 9:14 AM, Sato Takenori takenori.sato@gmail.com wrote:
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"
}
}
}
}