From what I understand, elasticsearch doesn't provide C++ api with it. So, I'm assuming that I should use a library to send/receive http requests for indexing and searching. Any recommendations on the library that would suit elastic search needs? Thanks.
You can use the open index API to re-open closed indices. If the request targets a data stream, the request re-opens any of the stream's closed backing indices. A closed index is blocked for read/write operations and does not allow all operations that opened indices allow.
One of the great things about Elasticsearch is its extensive REST API which allows you to integrate, manage and query the indexed data in countless different ways. Examples of using this API to integrate with Elasticsearch are abundant, spanning different companies and use cases.
A closed index has almost no overhead on the cluster (except for maintaining its metadata), and is blocked for read/write operations.
I just released one on github: https://github.com/QHedgeTech/cpp-elasticsearch.
There is one home made http client included but it can easily be plugged to libcurl. It's still minimal, hope to see you contribute so it'll match your needs too.
cpp-elasticsearch is a small C++ API to elasticsearch, it aims at becomming the official one. Documentation is still to come, as well as a "get started" page.
Actual version is minimal and has been developped for the needs of Q-Hedge Technologies. Features of C++11 are used in this code.
Any networking library should work fine. Libcurl is probably the easiest/fastest to get running, since all you really need are simple HTTP requests (Get/Put/Post/Delete)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With