Skip to content

navneetprabhakar/elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Implementation using Spring Boot

This repository is implementation of Elasticsearch with Spring Boot Application with REST APIs to insert and search

Introduction:

Elasticsearch is a distributed, free and open search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. Elasticsearch is built on Apache Lucene and was first released in 2010 by Elasticsearch N.V. (now known as Elastic). Known for its simple REST APIs, distributed nature, speed, and scalability, Elasticsearch is the central component of the Elastic Stack, a set of free and open tools for data ingestion, enrichment, storage, analysis, and visualization. Commonly referred to as the ELK Stack (after Elasticsearch, Logstash, and Kibana), the Elastic Stack now includes a rich collection of lightweight shipping agents known as Beats for sending data to Elasticsearch.

Approach

  1. Add maven dependecies for elasticsearch
  2. Create an ES Index named "customer" in your ES server. You can leave the default text column or create keyword if you like both work. Keyword is preferred
  3. Create JPA Repository for insert and search
  4. Create REST API to insert and search

API Description:

{
    "data":{
        "id":"1",
        "customerId":"CUST_ID1",
        "name":"Navneet Prabhakar",
        "mobile" :"88888888",
        "email":"[email protected]",
        "type":"GOLD",
        "currentAddress":{
            "line1":"ABCD",
            "line2":"CDEF",
            "city":"Delhi",
            "state":"Delhi",
            "country":"India",
            "pincode": 110001
        },
         "permanentAddress":{
            "line1":"ABC",
            "line2":"CDE",
            "city":"Delhi",
            "state":"Delhi",
            "country":"India",
            "pincode": 110001
        }
    }
}

Wiki Link: https://www.elastic.co/what-is/elasticsearch

About

Elasticsearch implementation with Spring Boot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages