Actually the _source field is a regular field defined by default as stored, do you need to fetch all the fields you're sending to ES? By default if you don't have any other field specified as stored when you request any particular field ES parses the _source field and returns it. So I don't think that specifying the fields as stored will be slower than using the _source field and you get more control over what you store.
Greetings, ----- Original Message ----- From: "Jingzhao Ou" <jingzhao...@gmail.com> To: elasticsearch@googlegroups.com Sent: Saturday, November 22, 2014 11:54:27 PM Subject: Re: Elastic Search as cache I did some experiments following your advice. One issue is that: when "_source" is disabled, when I get a document by its id, the original JSON is not there. How am I supposed to get my data back with "_source" set to false? I figured out a way to get data back when "_source" is disabled. That is by setting "store" to true on a field. My question is whether setting "store" to true for all the fields is faster than setting "_source" to true in my specific case. Thanks a lot! Jingzhao -- 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+unsubscr...@googlegroups.com . To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a4eb1ed6-dd75-4d71-901c-be649085c1cf%40googlegroups.com . For more options, visit https://groups.google.com/d/optout . Proceso de Acreditación de la Maestría en Gestión de Proyectos Informáticos. En busca de la Excelencia. Del 24 al 28 de noviembre de 2014. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1222705123.113462.1416729446569.JavaMail.zimbra%40uci.cu. For more options, visit https://groups.google.com/d/optout.