Fork me on GitHub

Library Elastic

Introduction

This library provides simplified methods to perform HTTP requests (GET, POST, ...) to an Elastic Search server.

It's based on Lutece HttpAccess library in order to use shared HttpClient configuration notably for proxies.

Usage

Here is some use samples :

    elastic = new Elastic( strServerUrl );
    elastic.create( strIndex, object );
    ...                    
    elastic.isExists( strIndex );                    
    elastic.delete( strIndex );
                        
    ElasticConnexion ec = new ElasticConnexion();
    String strResponse = ec.GET( strURI );