Skip to content

Commit 089d774

Browse files
akonczakmohsinh
authored andcommitted
DATAES-285 - upgrade to elasticsearch 5.x
1 parent 17603ca commit 089d774

File tree

114 files changed

+1016
-1370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1016
-1370
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ atlassian-ide-plugin.xml
66
## ignore any target dir
77
target
88

9-
##ignore only top level data dir - local node data files for unit tests
10-
/data
11-
129
## Ignore project files created by Eclipse
1310
.settings
1411
.project

pom.xml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<properties>
2020
<commonscollections>3.2.1</commonscollections>
2121
<commonslang>2.6</commonslang>
22-
<elasticsearch>2.4.0</elasticsearch>
22+
<elasticsearch>5.2.1</elasticsearch>
2323
<springdata.commons>2.0.0.BUILD-SNAPSHOT</springdata.commons>
2424
</properties>
2525

@@ -70,6 +70,30 @@
7070
<version>${elasticsearch}</version>
7171
</dependency>
7272

73+
<dependency>
74+
<groupId>org.elasticsearch.client</groupId>
75+
<artifactId>transport</artifactId>
76+
<version>${elasticsearch}</version>
77+
<exclusions>
78+
<exclusion>
79+
<groupId>commons-logging</groupId>
80+
<artifactId>commons-logging</artifactId>
81+
</exclusion>
82+
</exclusions>
83+
</dependency>
84+
85+
<dependency>
86+
<groupId>org.slf4j</groupId>
87+
<artifactId>log4j-over-slf4j</artifactId>
88+
<version>1.7.22</version>
89+
</dependency>
90+
91+
<dependency>
92+
<groupId>org.apache.logging.log4j</groupId>
93+
<artifactId>log4j-core</artifactId>
94+
<version>2.6.2</version>
95+
</dependency>
96+
7397
<!-- Jackson JSON Mapper -->
7498
<dependency>
7599
<groupId>com.fasterxml.jackson.core</groupId>
@@ -96,6 +120,12 @@
96120
<groupId>org.springframework</groupId>
97121
<artifactId>spring-test</artifactId>
98122
<scope>test</scope>
123+
<exclusions>
124+
<exclusion>
125+
<groupId>ch.qos.logback</groupId>
126+
<artifactId>logback-classic</artifactId>
127+
</exclusion>
128+
</exclusions>
99129
</dependency>
100130
<dependency>
101131
<groupId>org.apache.openwebbeans.test</groupId>
@@ -120,13 +150,22 @@
120150
<scope>test</scope>
121151
</dependency>
122152

153+
<dependency><!-- required by elasticsearch -->
154+
<groupId>org.elasticsearch.plugin</groupId>
155+
<artifactId>transport-netty4-client</artifactId>
156+
<version>${elasticsearch}</version>
157+
<!--<scope>test</scope>-->
158+
</dependency>
159+
123160
<dependency>
124161
<groupId>org.projectlombok</groupId>
125162
<artifactId>lombok</artifactId>
126163
<version>${lombok}</version>
127164
<scope>test</scope>
128165
</dependency>
129166

167+
168+
130169
</dependencies>
131170

132171
<build>

src/main/java/org/springframework/data/elasticsearch/annotations/CompletionField.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
String analyzer() default "simple";
3434

35-
boolean payloads() default false;
36-
3735
boolean preserveSeparators() default true;
3836

3937
boolean preservePositionIncrements() default true;

src/main/java/org/springframework/data/elasticsearch/annotations/Field.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@
3838

3939
FieldType type() default FieldType.Auto;
4040

41-
FieldIndex index() default FieldIndex.analyzed;
41+
boolean index() default true;
4242

4343
DateFormat format() default DateFormat.none;
4444

4545
String pattern() default "";
4646

4747
boolean store() default false;
4848

49+
boolean fielddata() default false;
50+
4951
String searchAnalyzer() default "";
5052

5153
String analyzer() default "";

src/main/java/org/springframework/data/elasticsearch/annotations/FieldType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
* @author Artur Konczak
2222
*/
2323
public enum FieldType {
24-
String, Integer, Long, Date, Float, Double, Boolean, Object, Auto, Nested, Ip, Attachment
24+
text, Integer, Long, Date, Float, Double, Boolean, Object, Auto, Nested, Ip, Attachment, keyword
2525
}

src/main/java/org/springframework/data/elasticsearch/annotations/GeoPointField.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,4 @@
2525
@Documented
2626
public @interface GeoPointField {
2727

28-
boolean geoHashPrefix() default false;
29-
30-
String geoHashPrecision() default "0";
31-
3228
}

src/main/java/org/springframework/data/elasticsearch/annotations/InnerField.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131

3232
FieldType type();
3333

34-
FieldIndex index() default FieldIndex.analyzed;
34+
boolean index() default true;
3535

3636
boolean store() default false;
3737

38+
boolean fielddata() default false;
39+
3840
String searchAnalyzer() default "";
3941

4042
String indexAnalyzer() default "";

0 commit comments

Comments
 (0)