curl -XPOST http://localhost:9200/index/fulltext/ -d'
{
"mappings":
{
"default" :
{
"term_vector": "no",
"indexAnalyzer": "mmseg",
"searchAnalyzer": "mmseg",
"dynamic_date_formats" : ["yyyy-MM-dd"],
"dynamic_templates":[{"store_generic":{"match":"*","mapping":{"store":true}}}],
"_source" :{"enabled":false}
}
}
}'
then,
curl -XPOST
'http://localhost:9200/index/_http://localhost:9200/index/fulltext/_search
-d '
{
"query": { "query_string" : { "query" : "xxx" } }
}'
reponse:
{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.095891505,"hits":[{"_index":"index","_type":"fulltext","_id":"1","_score":0.095891505,
"_source" :
{content:"xxx"}
}]}}
_source is return,am i wrong?
--
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/e11f72c0-3e39-4220-bf39-bb5a2d7c7a20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.