Updated How to start with spring data elasticsearch (creole => mediawiki)

akonczak 2013-08-27 15:03:13 -07:00
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:** **Case 1:**
I need only index and search documents in my project. 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 First add to your pom.xml file information about snapshot repository for spring-data-elasticsearch
{{{ {{{
<repositories> <repositories>
<repository> <repository>
@ -14,7 +17,9 @@ First add to your pom.xml file information about snapshot repository for spring-
</repository> </repository>
<repositories> <repositories>
}}} }}}
Second add dependency for spring-data-elasticsearch Second add dependency for spring-data-elasticsearch
{{{ {{{
<dependencies> <dependencies>
... ...
@ -26,12 +31,35 @@ Second add dependency for spring-data-elasticsearch
... ...
</dependencies> </dependencies>
}}} }}}
Having both entries in the pom file you should be able to use spring-data-elasticsearch without any issues. Having both entries in the pom file you should be able to use spring-data-elasticsearch without any issues.
**Case 2:** **Case 2:**
I have a plane to develop new feature/ or extend existing ones. 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>
}}}