Unable to bulk create document using nest and elasticsearch Error reading string. "Unexpected token: StartObject. Path 'items[0].create.error'" -
i trying bulk create document exists in elasticsearch.
descriptor.create<d>(op => op.document((d)basenotice)); _elasticclient.bulk(descriptor); i have got serializer exception there
exception thrown: 'newtonsoft.json.jsonreaderexception' in elasticsearch.net.dll additional information: error reading string. unexpected token: startobject. path 'items[0].create.error', line 1, position 123. the index method works need use create operation
descriptor.index<d>(op => op.document((d)basenotice));
may can go through list of bulk , remove ones exist , call create. can use multiget checking existence of docs going create.
Comments
Post a Comment