Skip to content

gdiazlo/opensearch_ocaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opensearch client in Ocaml

This repository contains an OpenSearch client written in Ocaml.

It is modeled after their official clients published in their GitHub organization

This client is unreleased as it is a work in progress.

Dependencies

The client is built using common Ocaml community libraries:

Usage

For now, see the tests. The client API will probably change over time until the first released version.

Tests

Until we create a mock, we use mitmproxy and a real OpenSearch cluster for testing. All tests try to call mitmproxy which then redirects to the opensearch backend listening on https://localhost:9200.

In mitmproxy we can see the requests and responses manually, as the tests only check whether the response was not an HTTP error code.

To do

We follow the OpenSearch APIreference to implement the client. Our aim is to provide a client as complete as possible.

OpenSearch has a lot of objects which conform the payload for a lot of APIs. We should implement builders for the most important ones:

A nice addition would be to add support to the stantard OpenSearch plugins APIs:

About

OpenSearch Ocaml client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages