I have not explicitly created an index for my app search, so I wonder how I would format the index row? Would it work to do it like this?: (Removing the _index field)
{ "index" : { "_id" : "1" } }
{ "field1" : "value1" }
We never recommend indexing data into AppSearch indices directly. Those indices are internal, their schema and settings can change with any release, and you can't expect your code to keep working if that happens.
However, AppSearch has its own API that you can call to index multiple documents. See documentation here:
Note that AppSearch has some limits on the size of a bulk request, and those may not be the same as limits that Elasticsearch sets on bulk requests. Currently they are:
There is a 100 document per request limit.
Each document must be less than 100kb.
The indexing request may not exceed 10mb.
When using the API that AppSearch provides, you don't need to worry about creating indices, AppSearch will do that for you on your first indexing request.
Refer to the documentation link above for more information.
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.