src/elastic-connection.c
int elastic_connection_bulk(struct elastic_connection *conn, string_t *cmd)
{
    FUNC_START();
    const char *path = NULL;

    if (conn == NULL || cmd == NULL) {
        i_error("fts_elastic: connection_bulk: conn or cmd is NULL");
        return -1;
    }

    conn->post_type = ELASTIC_POST_TYPE_BULK;
    path = t_strconcat(conn->http_base_path, "_bulk"
                        "?routing=", conn->username,
                        conn->refresh_on_update ? "&refresh=true" : "",
                        NULL);
    elastic_connection_post(conn, path, cmd);
    FUNC_END();
    return conn->request_status;
}
/* Performs elastic _bulk request
 * checking only response status
 */
Performs elastic _bulk request
checking only response status
Performs elastic _bulk request checking only response status
int elastic_connection_bulk(struct elastic_connection *conn, string_t *cmd)
{
    FUNC_START();
    const char *path = NULL;
    if (conn == NULL || cmd == NULL) {
        i_error("fts_elastic: connection_bulk: conn or cmd is NULL");
        return -1;
    }
    conn->post_type = ELASTIC_POST_TYPE_BULK;
    path = t_strconcat(conn->http_base_path, "_bulk"
                        "?routing=", conn->username,
                        conn->refresh_on_update ? "&refresh=true" : "",
                        NULL);
    elastic_connection_post(conn, path, cmd);
    FUNC_END();
    return conn->request_status;
}
int elastic_connection_bulk ( struct elastic_connection * conn , string_t * cmd ) { FUNC_START ( ) ; const char * path = NULL ; if ( conn == NULL || cmd == NULL ) { i_error ( " " ) ; return -1 ; } conn -> post_type = ELASTIC_POST_TYPE_BULK ; path = t_strconcat ( conn -> http_base_path , " " " " , conn -> username , conn -> refresh_on_update ? " " : " " , NULL ) ; elastic_connection_post ( conn , path , cmd ) ; FUNC_END ( ) ; return conn -> request_status ; }
Performs elastic _bulk request
 checking only response status
Performs elastic _bulk request checking only response status