Skip to content

charliewolf/elasticplusplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticPlusPlus - A high level, type-safe ElasticSearch DSL for C++

Example

#include "search.h"
#include "client.h"
#include <iostream>

int main(int argc, char *argv[])
{
    ESClient client("http://localhost:9200/");
    Search search(MatchQuery("name", "Charlie") + TermQuery("user_id", 11));
    auto results = client.search(search);
    for(auto result : results.hits()){
        std::cout << result.id();
    }
    return 0;
}

Status

Working

  • Query types: bool, match, match_all, term, query_string, simple_query_string
  • Sorting
  • Pagination
  • Create, update, delete documents

TODO

  • Other query types (e.g. regex) (Note: You can still user aggregates and unsupported query types using the raw JSON query functions)
  • Aggregations (Note: You can still user aggregates and unsupported query types using the raw JSON query functions)
  • MultiGET
  • CRUD of the index itself

About

🔍 High-level C++ client for ElasticSearch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published