1 #ifndef SOLR_CONNECTION_H 2 #define SOLR_CONNECTION_H 3 4 #include "solr-response.h" 5 6 struct solr_connection; 7 struct fts_solr_settings; 8 9 int solr_connection_init(const struct fts_solr_settings *solr_set, 10 const struct ssl_iostream_settings *ssl_client_set, 11 struct event *event_parent, 12 struct solr_connection **conn_r, 13 const char **error_r); 14 void solr_connection_deinit(struct solr_connection **conn); 15 16 int solr_connection_select(struct solr_connection *conn, const char *query, 17 pool_t pool, struct solr_result ***box_results_r); 18 int solr_connection_post(struct solr_connection *conn, const char *cmd); 19 20 struct solr_connection_post * 21 solr_connection_post_begin(struct solr_connection *conn); 22 void solr_connection_post_more(struct solr_connection_post *post, 23 const unsigned char *data, size_t size); 24 int solr_connection_post_end(struct solr_connection_post **post); 25 26 #endif 27