1
+ ![ Spring Boot] ( https://img.shields.io/badge/Spring%20Boot-6DB33F?style=for-the-badge&logo=springboot&logoColor=white )
2
+ ![ Elasticsearch] ( https://img.shields.io/badge/Elasticsearch-005571?style=for-the-badge&logo=elasticsearch&logoColor=white )
3
+ ![ Docker] ( https://img.shields.io/badge/Docker-2496ED?style=for-the-badge&logo=docker&logoColor=white )
4
+ ![ Docker Compose] ( https://img.shields.io/badge/Docker%20Compose-2496ED?style=for-the-badge&logo=docker&logoColor=white )
5
+
6
+
1
7
# Hibernate Search 6 Example
2
8
3
9
Simple Spring Boot application demonstrating Hibernate Search 6 usage with Elasticsearch.
@@ -10,15 +16,14 @@ ER diagram:
10
16
11
17
![ ER diagram] ( ./documentation/ERD.influncers.drawio.png )
12
18
13
- Full text search is available for Freelancer and Project entities.
19
+ ** Full text search is available for Freelancer and Project entities.**
14
20
15
21
Indexing Entities
16
22
- [ Project] ( ./backend/src/main/java/com/netz00/hibernatesearch6example/model/Project.java )
17
23
- [ Freelancer] ( ./backend/src/main/java/com/netz00/hibernatesearch6example/model/Freelancer.java )
18
24
- [ Freelancer categories] ( ./backend/src/main/java/com/netz00/hibernatesearch6example/model/Category.java )
19
25
20
- 3 search examples:
21
-
26
+ ** 3 search examples:**
22
27
- [ searchProjectsEntities] ( ./backend/src/main/java/com/netz00/hibernatesearch6example/services/ProjectServiceImpl.java )
23
28
demonstrates basic full text search of projects by
24
29
- project name
@@ -33,22 +38,21 @@ demonstrates full text search of freelancers (with projections) by
33
38
- last name
34
39
- categories (M: N relationship)
35
40
36
- Creating custom
37
- [ edgeNgram analyser] ( ./backend/src/main/java/com/netz00/hibernatesearch6example/config/MyElasticsearchAnalysisConfigurer.java )
38
-
39
- ## Running
40
-
41
- Before running Spring Boot application start necessary Docker containers with the following commands:
41
+ ** Creating custom
42
+ [ edgeNgram analyser] ( ./backend/src/main/java/com/netz00/hibernatesearch6example/config/MyElasticsearchAnalysisConfigurer.java ) **
42
43
43
- - Start development environment with:
44
- ` docker compose -f deployment/docker-compose-dev.yaml up -d `
44
+ ## Running the Application
45
45
46
- - Stop development environment with:
47
- ` docker compose -f deployment/docker-compose-dev.yaml down `
46
+ Before starting the Spring Boot application, ensure that the necessary Docker containers are running.
47
+ ``` bash
48
+ docker compose -f deployment/docker-compose-dev.yaml up -d
49
+ ```
48
50
49
- Run tests with the following command:
50
51
51
- ` newman run ./backend/src/test/postman/Hibernate-search-6-example.postman_collection.json -e ./backend/src/test/postman/Test\ Environment.postman_environment.json --reporters cli,json --reporter-json-export ./backend/src/test/postman/output/outputfile.json `
52
+ Running Tests:
53
+ ``` bash
54
+ newman run ./backend/src/test/postman/Hibernate-search-6-example.postman_collection.json -e ./backend/src/test/postman/Test\ Environment.postman_environment.json --reporters cli,json --reporter-json-export ./backend/src/test/postman/output/outputfile.json
55
+ ```
52
56
53
57
Import postman collection from [ here] ( ./backend/src/test/postman/Hibernate-search-6-example.postman_collection.json )
54
58
0 commit comments