I'm trying to use the bulk API, which says
"In the optional source part, the type
is optional as is when
indexing data."
but if I leave off the "_type" field, I get an error. Am I reading it
correctly?
--Dave
I'm trying to use the bulk API, which says
"In the optional source part, the type
is optional as is when
indexing data."
but if I leave off the "_type" field, I get an error. Am I reading it
correctly?
--Dave
Yea, what is meant is that the type as the top level object in the source is optional. Actually, it is usually best to not include it in the source as the top level object.
On Sunday, April 3, 2011 at 1:41 AM, dmurphy747 wrote:
I'm trying to use the bulk API, which says
"In the optional source part, thetype
is optional as is when
indexing data."
but if I leave off the "_type" field, I get an error. Am I reading it
correctly?--Dave
© 2020. All Rights Reserved - Elasticsearch
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.