add support to index api call for all optional parameters [parentId, version, op_type,routing,timestamp,ttl,percolate,timeout]
added test that ensures op_type is set to create if id is omitted