mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-21 03:22:11 +00:00
Created How to start with spring-data-elasticsearch (markdown)
parent
a494379193
commit
e0150d6027
35
How-to-start-with-spring-data-elasticsearch.md
Normal file
35
How-to-start-with-spring-data-elasticsearch.md
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
# First thing you will need to answer to yourself how you will use this framework.
|
||||
|
||||
## Case 1:
|
||||
I need only index and search documents in my project.
|
||||
Quick start:
|
||||
First add to your pom.xml file information about snapshot repository for spring-data-elasticsearch
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spring-snapshot</id>
|
||||
<name>Spring Maven SNAPSHOT Repository</name>
|
||||
<url>http://repo.springsource.org/libs-snapshot</url>
|
||||
</repository>
|
||||
<repositories>
|
||||
|
||||
Second add dependency for spring-data-elasticsearch
|
||||
<dependencies>
|
||||
...
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-elasticsearch</artifactId>
|
||||
<version>1.0.0.BUILD-SNAPSHOT</version>
|
||||
</dependency>
|
||||
...
|
||||
</dependencies>
|
||||
|
||||
Having both entries in the pom file you should be able to use spring-data-elasticsearch without any issues.
|
||||
|
||||
|
||||
## Case 2:
|
||||
I have a plane to develop new feature/ or extend existing ones.
|
||||
Quick start:
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user