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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.