Skip to content

Rapter1990/elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot and Elastic Search via Docker

Main Information

📖 Information

  • We can search full-text in a huge data stack via Elastic Search.
  • By searching through indexes, it produces the result quickly
  • Here is the explanation of the project
    • After implementing Elastic Search configuration, the projects provides you to implement both CRUD process and custom search criteria operations

🔨 Run the App

1 ) Install Docker Desktop. Here is the installation link : https://docs.docker.com/docker-for-windows/install/

2 ) Open Terminal under resources folder to run Elastic Search Server on Docker Container

    docker-compose up -d

3 ) Show container which runs on Docker

    docker ps

4 ) To save movie, write url and movie body shown below

http://localhost:8080/movies/save

movie body

{
    "name": "MovieA",
    "genre": [
        { "name" : "Comedy"},
        { "name" : "Action"}
    ],
    "rating" : "8.5",
    "director" : {
            "name" : "Director 1"
        }
}

5 ) To get all movie list, write url shown below.

http://localhost:8080/movies/find/all

6 ) To get any specific movie, write url shown below

http://localhost:8080/movies/find/{movie_id}

7 ) To search any specific movie, write url shown below

http://localhost:8080/movies/{movie_name}

8 ) To search any specific movie with fuzziness, write url shown below. Fuzziness means that you can write any text which defines its search format like MovIE(Movie) before implementing its process.

http://localhost:8080/fuzzines/{movie_name}

9 ) To search any specific movie by its id or name,write url shown below.

http://localhost:8080/multi/{movie_id}
http://localhost:8080/multi/{movie_name}

10 ) To search any specific movie by full text movie name like ,write url shown below.

http://localhost:8080/multi/{movie_id}
http://localhost:8080/multi/{movie_name}

11 ) To search any specific movie by phrase ,write url shown below.

http://localhost:8080/phrase_search/{movie_name}

12 ) To search any specific movie by phrase ,write url shown below.

http://localhost:8080/phrase_search/{movie_name}

13 ) To search any specific movie by name, write url shown below

http://localhost:8080/find_name/{movie_name}

14 ) To search any specific movie by rating between two value, write url shown below

http://localhost:8080/getByRatingInterval/start/{start}/end/{end}

15 ) To search any specific movie by director, write url shown below

http://localhost:8080/finddirector/{movie_name}

16 ) To search any specific movie by director, write url shown below

http://localhost:8080/finddirector/{movie_name}

17 ) To update any specific movie by id, write url shown below and write the request body

http://localhost:8080/update/{movie_id}

{
    "name": "MovieB",
    "genre": [
        { "name" : "Drama"},
        { "name" : "Action"}
    ],
    "rating" : "8.8",
    "director" : {
            "name" : "DirectorB"
        }
}

18 ) To delete any specific movie by id, write url shown below

http://localhost:8080/movies/delete/{movie_id}

Screenshots

Click here to show the screenshots of project

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Figure 11

Figure 12

Figure 13

Figure 14

Releases

No releases published

Packages

No packages published

Languages