Hi all
I have a type named 'user', which mapping is following
curl -XGET "localhost:9200/dv_list/user/_mapping?pretty=true"
{
"dv_list" : {
"mappings" : {
"user" : {
"_source" : {
"enabled" : false
},
"properties" : {
"name" : {
"type" : "string",
"index" : "not_analyzed",
"store" : true
},
"point" : {
"type" : "long",
"index" : "no",
"doc_values" : true
}
}
}
}
}
}
when I execute following query,
curl -XPOST 'http://localhost:9200/dv_list/user/_search?pretty=true' -d '{
"query": {
"match_all": {
}
},
"fields": ["point"]
}'
The filed('point')'s content not returned by ES, result is
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 7,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dv_list",
"_type" : "user",
"_id" : "5",
"_score" : 1.0
}, {
"_index" : "dv_list",
"_type" : "user",
"_id" : "1",
"_score" : 1.0
}, {
"_index" : "dv_list",
"_type" : "user",
"_id" : "6",
"_score" : 1.0
}, {
"_index" : "dv_list",
"_type" : "user",
"_id" : "4",
"_score" : 1.0
}, {
"_index" : "dv_list",
"_type" : "user",
"_id" : "2",
"_score" : 1.0
}, {
"_index" : "dv_list",
"_type" : "user",
"_id" : "7",
"_score" : 1.0
}, {
"_index" : "dv_list",
"_type" : "user",
"_id" : "3",
"_score" : 1.0
} ]
}
}
If I use "script_fileds", the result can get through "doc['point'].value",
but I think the performace of script_fields is bad than fields'.
My ES version is 1.0.1.
Thanks
Zhao Chun
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f63c3b45-5f71-4d16-ab71-046dde16ae86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.