results in not being able to query any fields, which are behind the
"attrs" field, so I cannot do a term query on the field "baz" for
"ham"
When adding the attrs as object in the mapping, it all works fine.
However it just does not work without the configuration and does not
spit any warning. IMO it should ignore the "attrs" attribute then, but
still index the baz attribute correctly.
Once you index, can you do a get mapping to see what the result of it is? I
suspect "attrs" will be of type string (instead of object, which is should
be) because you match on all names. It won't fail during indexing in this
case (I suspect, didn't test it). You can use mach_type set to string to
apply the mentioned logic only on string type fields.
results in not being able to query any fields, which are behind the
"attrs" field, so I cannot do a term query on the field "baz" for
"ham"
When adding the attrs as object in the mapping, it all works fine.
However it just does not work without the configuration and does not
spit any warning. IMO it should ignore the "attrs" attribute then, but
still index the baz attribute correctly.
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.