@@ -65,11 +65,15 @@ protected boolean supportsRangeQueries() {
65
65
@ Override
66
66
public void testDocValues () throws IOException {
67
67
try (Directory directory = newDirectory (); RandomIndexWriter iw = new RandomIndexWriter (random (), directory )) {
68
- iw .addDocument (org .elasticsearch .common .collect .List .of (
69
- new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 45.0, \" lon\" : 45.0}}" )))
68
+ iw .addDocument (
69
+ org .elasticsearch .common .collect .List .of (
70
+ new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 45.0, \" lon\" : 45.0}}" ))
71
+ )
70
72
);
71
- iw .addDocument (org .elasticsearch .common .collect .List .of (
72
- new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 0.0, \" lon\" : 0.0}}" )))
73
+ iw .addDocument (
74
+ org .elasticsearch .common .collect .List .of (
75
+ new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 0.0, \" lon\" : 0.0}}" ))
76
+ )
73
77
);
74
78
List <Object > results = new ArrayList <>();
75
79
try (DirectoryReader reader = iw .getReader ()) {
@@ -116,11 +120,15 @@ public void testSort() throws IOException {
116
120
@ Override
117
121
public void testUsedInScript () throws IOException {
118
122
try (Directory directory = newDirectory (); RandomIndexWriter iw = new RandomIndexWriter (random (), directory )) {
119
- iw .addDocument (org .elasticsearch .common .collect .List .of (
120
- new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 45.0, \" lon\" : 45.0}}" )))
123
+ iw .addDocument (
124
+ org .elasticsearch .common .collect .List .of (
125
+ new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 45.0, \" lon\" : 45.0}}" ))
126
+ )
121
127
);
122
- iw .addDocument (org .elasticsearch .common .collect .List .of (
123
- new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 0.0, \" lon\" : 0.0}}" )))
128
+ iw .addDocument (
129
+ org .elasticsearch .common .collect .List .of (
130
+ new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 0.0, \" lon\" : 0.0}}" ))
131
+ )
124
132
);
125
133
try (DirectoryReader reader = iw .getReader ()) {
126
134
IndexSearcher searcher = newSearcher (reader );
@@ -149,11 +157,15 @@ public double execute(ExplanationHolder explanation) {
149
157
@ Override
150
158
public void testExistsQuery () throws IOException {
151
159
try (Directory directory = newDirectory (); RandomIndexWriter iw = new RandomIndexWriter (random (), directory )) {
152
- iw .addDocument (org .elasticsearch .common .collect .List .of (
153
- new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 45.0, \" lon\" : 45.0}}" )))
160
+ iw .addDocument (
161
+ org .elasticsearch .common .collect .List .of (
162
+ new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 45.0, \" lon\" : 45.0}}" ))
163
+ )
154
164
);
155
- iw .addDocument (org .elasticsearch .common .collect .List .of (
156
- new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 0.0, \" lon\" : 0.0}}" )))
165
+ iw .addDocument (
166
+ org .elasticsearch .common .collect .List .of (
167
+ new StoredField ("_source" , new BytesRef ("{\" foo\" : {\" lat\" : 0.0, \" lon\" : 0.0}}" ))
168
+ )
157
169
);
158
170
try (DirectoryReader reader = iw .getReader ()) {
159
171
IndexSearcher searcher = newSearcher (reader );
0 commit comments