Hi,
I'd like to be able to set index mapping for accepting documents such as the one below.
not sure what type I should declare the 'products' field to be.
setting 'type':'array' doesn't validate(fails on mapping) and setting it as 'type':'object ' doesn't accept the this document structure (fails on indexing):
MapperParsingException[object mapping [segments] trying to serialize a value with no field associated with it, current value [123]]
Any idea what's the right configuration I should use here?
*I'm able to insert the document without mapping but I've to have it with mapping because the event type needs to be set as nested..
Hi,
I'd like to be able to set index mapping for accepting documents such as the
one below.
not sure what type I should declare the 'products' field to be.
setting 'type':'array' doesn't validate(fails on mapping) and setting it as
'type':'object ' doesn't accept the this document structure (fails on
indexing):
MapperParsingException[object mapping [segments] trying to serialize a value
with no field associated with it, current value [123]]
Any idea what's the right configuration I should use here?
*I'm able to insert the document without mapping but I've to have it with
mapping because the event type needs to be set as nested..
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.