How to Not index a field


(IronMike) #1

Is it possible in ElasticSearch?

Assume I have a doc { "field1":value1, "field2":value2 ...}

One of the fields "field2" I would like not to index, basically just store
its content in ElasticSearch and retrieve it when need it.

--
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/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Nik Everett) #2

I'm not sure the right way to do it but if you set dynamic to false and
then just send the field it'll be stored but not indexed.

On Wed, Aug 13, 2014 at 9:35 AM, Sam2014 sabdalla80@gmail.com wrote:

Is it possible in ElasticSearch?

Assume I have a doc { "field1":value1, "field2":value2 ...}

One of the fields "field2" I would like not to index, basically just store
its content in ElasticSearch and retrieve it when need it.

--
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/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAPmjWd0Ov0ObTPgVi58hGNO5W2NrObcTNbajeS%3DNGyb5BE1wzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(IronMike) #3

Is there a link/example of how to do this somewhere?

On Wednesday, August 13, 2014 9:40:16 AM UTC-4, Nikolas Everett wrote:

I'm not sure the right way to do it but if you set dynamic to false and
then just send the field it'll be stored but not indexed.

On Wed, Aug 13, 2014 at 9:35 AM, Sam2014 <sabda...@gmail.com <javascript:>

wrote:

Is it possible in ElasticSearch?

Assume I have a doc { "field1":value1, "field2":value2 ...}

One of the fields "field2" I would like not to index, basically just
store its content in ElasticSearch and retrieve it when need it.

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/257017cd-77b2-497d-a0d4-0a2cd80f5ed3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4