mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-13 07:32:11 +00:00
Updated How to start with spring data elasticsearch (creole => mediawiki)
parent
4cb5f65556
commit
cee8ade6f9
@ -1,10 +1,13 @@
|
||||
**First thing you will need to answer to yourself how you will use this framework.**
|
||||
**First 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:
|
||||
How to configure your project:
|
||||
|
||||
First add to your pom.xml file information about snapshot repository for spring-data-elasticsearch
|
||||
|
||||
{{{
|
||||
<repositories>
|
||||
<repository>
|
||||
@ -14,7 +17,9 @@ First add to your pom.xml file information about snapshot repository for spring-
|
||||
</repository>
|
||||
<repositories>
|
||||
}}}
|
||||
|
||||
Second add dependency for spring-data-elasticsearch
|
||||
|
||||
{{{
|
||||
<dependencies>
|
||||
...
|
||||
@ -26,12 +31,35 @@ Second add dependency for spring-data-elasticsearch
|
||||
...
|
||||
</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:
|
||||
|
||||
How to configure your project:
|
||||
|
||||
Project has dependencies with spring-data-parent to fulfil that we need to add information about snapshot spring repository and snapshot spring plugin repository.
|
||||
|
||||
Snapshot spring repository:
|
||||
{{{
|
||||
<repository>
|
||||
<id>spring-snapshot</id>
|
||||
<name>Spring Maven SNAPSHOT Repository</name>
|
||||
<url>http://repo.springsource.org/libs-snapshot</url>
|
||||
</repository>
|
||||
}}}
|
||||
Snapshot spring plugin repository:
|
||||
{{{
|
||||
<pluginRepository>
|
||||
<id>com.springsource.repository.bundles.release</id>
|
||||
<url>http://repository.springsource.com/maven/bundles/release</url>
|
||||
</pluginRepository>
|
||||
}}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user