GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - blaspat/elasticsearchclient: Elasticsearch Simple Client

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Resilient Elasticsearch Client

A resilient Elasticsearch client for Java applications with connection pooling, thread-safe client management, and configurable timeouts.

Maven Central

Maven

<dependency>
    <groupId>io.github.blaspat</groupId>
    <artifactId>elasticsearchclient</artifactId>
    <version>1.0.4</version>
</dependency>

Features

  • Thread-safe client pool — Uses ConcurrentHashMap for safe concurrent access
  • Connection pooling — Configurable number of initial connections
  • Round-robin load balancing — Clients are selected using atomic round-robin
  • Configurable timeouts — Connection and socket timeouts via properties
  • Graceful shutdown — All clients are properly closed via @PreDestroy

Configuration

elasticsearch:
  hosts: localhost:9200
  scheme: https
  username: elastic
  password: password
  connection:
    initConnections: 3
    connectTimeout: 5000
    socketTimeout: 30000

Usage

@Autowired
private ElasticsearchClientConfig elasticsearchClientConfig;

public void search() {
    ElasticsearchClient client = elasticsearchClientConfig.client();
    // use the client
}

Notes

  • ⚠️ SSL certificate verification is disabled — this library trusts all certificates. Do NOT use in production without proper certificate management.
  • Clients are properly closed on application shutdown via @PreDestroy.

About

Elasticsearch Simple Client

Topics

elasticsearchelasticsearch-clientjavaspringspring-boot

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.