ES field store yes no 区别——可以设置为false,如果_source有的话
store By default, field values areindexedto make them searchable, but they are notstored. This means that the field can be queried, but the original field value cannot be retrieved. Usually this doesn’t matter. The field value is already part of the_sourcefield, which is stored by default. If you only want to retrieve the value of a single field or of a few fields, instead of the whole_source, then this can be achieved withsource filtering. In certain situations it can make sense tostorea field. For instance, if you have a document with atitle, adate, and a very largecontentfield, you may want to retrieve just thetitleand thedatewithout having to extract those fields from a large_sourcefield: PUT my_index { "mappings": { "my_type": { "properties": { "title": { "type": "text", "store": true }, "date": { "type": "date", "store": true }, "content": { "type": "text" } } } } } PUT my_index/my_type/1 { "title": "Some short title", "date": "2015-01-01", "content": "A very long content field..." } GET my_index/_search { "stored_fields": [ "title", "date" ] } COPY AS CURL VIEW IN CONSOLE Thetitleanddatefields are stored. This request will retrieve the values of thetitleanddatefields. 来自:https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html 本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/6428653.html,如需转载请自行联系原作者