V. Gomathi

14 papers Journal 13Unranked 1
YearRankTypeTitle / Venue / Authors
2025 J jnl
Signal Image Video Process.
V. Anitha, S. Kalaiselvi, V. Gomathi, D. Manimegalai
2024 J jnl
Int. J. Wavelets Multiresolution Inf. Process.
K. Rathi, V. Gomathi, S. P. Raja
2024 J jnl
SN Comput. Sci.
A. Sheik Abdullah, J. Karthikeyan, V. Gomathi, R. Parkavi, P. Rajarajeswari
2023 J jnl
Neural Process. Lett.
Usha Kingsly Devi Karuthakannan, V. Gomathi
2023 J jnl
Comput. Syst. Sci. Eng.
B. Lalitha, V. Gomathi
2023 conf
DESSERT
S. Hari Ram, V. Latha, V. Gomathi
2022 J jnl
J. Intell. Fuzzy Syst.
M. L. Sworna Kokila, V. Gomathi
2021 J jnl
Inf. Technol. Control.
Veera Anusuya, V. Gomathi
2021 J jnl
J. Medical Imaging Health Informatics
M. L. Sworna Kokila, V. Gomathi
2021 J jnl
Signal Process. Image Commun.
A. Mookambiga, V. Gomathi
2020 J jnl
Multim. Tools Appl.
M. Jayalakshmi, V. Gomathi
2020 J jnl
Appl. Soft Comput.
S. Kalaiselvi, V. Gomathi
2016 J jnl
Multidimens. Syst. Signal Process.
A. Mookambiga, V. Gomathi
2011 J jnl
Appl. Soft Comput.
Gnaniyan Uma Maheswari, K. Ramar, D. Manimegalai, V. Gomathi
redb/settings/elasticsearch.py
← Index redb/settings/elasticsearch.py python
import logging
import os

from elasticsearch import Elasticsearch
from dotenv import load_dotenv

load_dotenv()

# Elasticsearch configuration
ELASTIC_ENDPOINT = os.getenv("ELASTIC_HOST")
ELASTIC_ENFORCE_SSL = os.getenv("ELASTIC_ENFORCE_SSL", False) == "True"
ELASTIC_USER = os.getenv("ELASTIC_USER")
ELASTIC_PASSWORD = os.getenv("ELASTIC_PASSWORD")
ELASTIC_BINARIES_COLLECTION = os.getenv("ELASTIC_BINARIES_COLLECTION", "test_db")

# Cached client instance
_elasticsearch_client = None

def get_elasticsearch_client():
    """Get Elasticsearch client with lazy initialization and caching"""
    global _elasticsearch_client
    
    if _elasticsearch_client is None:
        if not ELASTIC_ENDPOINT:
            raise ValueError("ELASTIC_HOST environment variable is required for Elasticsearch connection")
            
        _elasticsearch_client = Elasticsearch(
            ELASTIC_ENDPOINT,
            verify_certs=ELASTIC_ENFORCE_SSL,
            basic_auth=(ELASTIC_USER, ELASTIC_PASSWORD),
            maxsize=20,
            retry_on_timeout=True,
            timeout=30,
        )
    
    return _elasticsearch_client

def create_elasticsearch_client():
    """Create a new Elasticsearch client connection (legacy function)"""
    return get_elasticsearch_client()