File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- # Spring Data ElasticSearch Example
1
+ # Spring Data Elasticsearch Example
2
2
3
3
## Introduction
4
4
5
- This example demonstrates how to use Spring Data ElasticSearch to do simple CRUD operation.
5
+ This example demonstrates how to use Spring Data Elasticsearch to do simple CRUD operation.
6
6
7
7
You can find the tutorial about this example at the below link:
8
8
9
9
[ https://blog.madadipouya.com ] ( https://blog.madadipouya.com )
10
10
11
- For this example, a Book controller created that allows to do the following operations with ElasticSearch :
11
+ For this example, a Book controller created that allows to do the following operations with Elasticsearch :
12
12
13
13
- Get list of all books
14
14
- Create a book
@@ -19,24 +19,24 @@ For this example, a Book controller created that allows to do the following oper
19
19
20
20
## How to run
21
21
22
- The first thing to do is to start ElasticSearch . For that you can use the ` docker-compose ` file in this project
22
+ The first thing to do is to start Elasticsearch . For that you can use the ` docker-compose ` file in this project
23
23
and run it like this:
24
24
25
25
``` bash
26
26
$ docker-compose -f docker-compose up -d
27
27
```
28
28
29
- It brings ElasticSearch up on a single node cluster with the cluser name ` elasticsearch ` .
29
+ It brings Elasticsearch up on a single node cluster with the cluser name ` elasticsearch ` .
30
30
31
31
Then you can run the application like below:
32
32
33
33
``` bash
34
34
$ ./mvnw spring-boot:run
35
35
```
36
36
37
- If your ElasticSearch URI is not ` localhost ` and/or the cluster name is different simply override one or both of the following environment variable:
37
+ If your Elasticsearch URI is not ` localhost ` and/or the cluster name is different simply override one or both of the following environment variable:
38
38
39
39
- ` ES_URI `
40
40
- ` ES_CLUSTER_NAME `
41
41
42
- Once everything is up and running open the browser and go to [ http://localhost:8080 ] ( http://localhost:8080 ) . You should see Swagger to interact with.
42
+ Once everything is up and running open the browser and go to [ http://localhost:8080 ] ( http://localhost:8080 ) . You should see Swagger to interact with.
You can’t perform that action at this time.
0 commit comments