I'm using elastic4s to make index in ElasticSearch. My code as following:
var seqBulkDef = SeqBulkCompatibleDefinition
seqBulkDef=seqBulkDef:+request(sha256, parentId, indexMap, ES_INDEX, ES_INDEX_TYPE)
val resp = client.execute (bulk (seqBulkDef)).await(duration)
def request(sha: String, parentId: String, indexMap: Map, index: String, indexType: String): BulkCompatibleDefinition = {
update(sha) in index / indexType docAsUpsert indexMap parent parentId
}
But it doesn't work for the parentId
. How should I modify the syntax please.