Do Not Index Nested Document

Hello.

Is it possible to not index a nested document? I know I could add each
field of the nested document to the mapping file and set index = no, but it
would be nice if I could specify this at the nested document level. There
are many fields in my nested doc I would have to type out.

Also, I've been trying the include_in_parent = false setting, and I'm not
sure if this is preventing the nested document from getting indexed.

Thanks

--
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/b52e8ff1-9643-4f41-8da7-756be1c68298%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I use a dynamic template [1] (inside an index template[2]), where the path
is the nested document.
"dynamic_templates": [
{
"nested_doc": {
"path_match": "nested.*",
"mapping": {
"index" : "no"
}
}
}
]

All fields are marked as not indexed unless specifically allowed in the
mapping.

[1]

[2]

Cheers,

Ivan

On Thu, Jun 5, 2014 at 1:34 PM, Brian Behling brian.behling@gmail.com
wrote:

Hello.

Is it possible to not index a nested document? I know I could add each
field of the nested document to the mapping file and set index = no, but
it would be nice if I could specify this at the nested document level.
There are many fields in my nested doc I would have to type out.

Also, I've been trying the include_in_parent = false setting, and I'm not
sure if this is preventing the nested document from getting indexed.

Thanks

--
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/b52e8ff1-9643-4f41-8da7-756be1c68298%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b52e8ff1-9643-4f41-8da7-756be1c68298%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/CALY%3DcQC5kwDBq9A%2Bq3BzBd-gwBzT86SmpiGyM210fidB_tfNiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.