@@ -22,8 +22,8 @@ public class SearchRequest {
22
22
private String [] attributesToHighlight ;
23
23
private String [] filter ;
24
24
private String [][] filterArray ;
25
- private boolean matches ;
26
- private String [] facetsDistribution ;
25
+ private boolean showMatchesPosition ;
26
+ private String [] facets ;
27
27
private String [] sort ;
28
28
29
29
/** Empty SearchRequest constructor */
@@ -32,7 +32,7 @@ public SearchRequest() {}
32
32
/**
33
33
* Constructor for SearchRequest for building search queries with the default values: offset: 0,
34
34
* limit: 20, attributesToRetrieve: ["*"], attributesToCrop: null, cropLength: 200,
35
- * attributesToHighlight: null, filter: null, matches : false, facetsDistribution : null, sort:
35
+ * attributesToHighlight: null, filter: null, showMatchesPosition : false, facets : null, sort:
36
36
* null
37
37
*
38
38
* @param q Query String
@@ -44,7 +44,7 @@ public SearchRequest(String q) {
44
44
/**
45
45
* Constructor for SearchRequest for building search queries with the default values: limit: 20,
46
46
* attributesToRetrieve: ["*"], attributesToCrop: null, cropLength: 200, attributesToHighlight:
47
- * null, filter: null, matches : false, facetsDistribution : null, sort: null
47
+ * null, filter: null, showMatchesPosition : false, facets : null, sort: null
48
48
*
49
49
* @param q Query String
50
50
* @param offset Number of documents to skip
@@ -56,7 +56,7 @@ public SearchRequest(String q, int offset) {
56
56
/**
57
57
* Constructor for SearchRequest for building search queries with the default values:
58
58
* attributesToRetrieve: ["*"], attributesToCrop: null, cropLength: 200, attributesToHighlight:
59
- * null, filter: null, matches : false, facetsDistribution : null, sort: null
59
+ * null, filter: null, showMatchesPosition : false, facets : null, sort: null
60
60
*
61
61
* @param q Query String
62
62
* @param offset Number of documents to skip
@@ -68,8 +68,8 @@ public SearchRequest(String q, int offset, int limit) {
68
68
69
69
/**
70
70
* Constructor for SearchRequest for building search queries with the default values:
71
- * attributesToCrop: null, cropLength: 200, attributesToHighlight: null, filter: null, matches:
72
- * false, facetsDistribution : null, sort: null
71
+ * attributesToCrop: null, cropLength: 200, attributesToHighlight: null, filter: null,
72
+ * showMatchesPosition: false, facets : null, sort: null
73
73
*
74
74
* @param q Query String
75
75
* @param offset Number of documents to skip
@@ -105,9 +105,9 @@ public SearchRequest(String q, int offset, int limit, String[] attributesToRetri
105
105
* @param cropLength Length used to crop field values
106
106
* @param attributesToHighlight Attributes whose values will contain highlighted matching terms
107
107
* @param filter Filter queries by an attribute value
108
- * @param matches Defines whether an object that contains information about the matches should
109
- * be returned or not
110
- * @param facetsDistribution Facets for which to retrieve the matching count
108
+ * @param showMatchesPosition Defines whether an object that contains information about the
109
+ * matches should be returned or not
110
+ * @param facets Facets for which to retrieve the matching count
111
111
* @param sort Sort queries by an attribute value
112
112
*/
113
113
public SearchRequest (
@@ -119,8 +119,8 @@ public SearchRequest(
119
119
int cropLength ,
120
120
String [] attributesToHighlight ,
121
121
String [] filter ,
122
- boolean matches ,
123
- String [] facetsDistribution ,
122
+ boolean showMatchesPosition ,
123
+ String [] facets ,
124
124
String [] sort ) {
125
125
this (
126
126
q ,
@@ -135,8 +135,8 @@ public SearchRequest(
135
135
attributesToHighlight ,
136
136
filter ,
137
137
null ,
138
- matches ,
139
- facetsDistribution ,
138
+ showMatchesPosition ,
139
+ facets ,
140
140
sort );
141
141
}
142
142
@@ -154,9 +154,9 @@ public SearchRequest(
154
154
* @param highlightPostTag String to customize highlight tag after every highlighted query terms
155
155
* @param attributesToHighlight Attributes whose values will contain highlighted matching terms
156
156
* @param filter Filter queries by an attribute value
157
- * @param matches Defines whether an object that contains information about the matches should
158
- * be returned or not
159
- * @param facetsDistribution Facets for which to retrieve the matching count
157
+ * @param showMatchesPosition Defines whether an object that contains information about the
158
+ * matches should be returned or not
159
+ * @param facets Facets for which to retrieve the matching count
160
160
* @param sort Sort queries by an attribute value
161
161
*/
162
162
public SearchRequest (
@@ -171,8 +171,8 @@ public SearchRequest(
171
171
String highlightPostTag ,
172
172
String [] attributesToHighlight ,
173
173
String [] filter ,
174
- boolean matches ,
175
- String [] facetsDistribution ,
174
+ boolean showMatchesPosition ,
175
+ String [] facets ,
176
176
String [] sort ) {
177
177
this (
178
178
q ,
@@ -187,8 +187,8 @@ public SearchRequest(
187
187
attributesToHighlight ,
188
188
filter ,
189
189
null ,
190
- matches ,
191
- facetsDistribution ,
190
+ showMatchesPosition ,
191
+ facets ,
192
192
sort );
193
193
}
194
194
@@ -203,9 +203,9 @@ public SearchRequest(
203
203
* @param cropLength Length used to crop field values
204
204
* @param attributesToHighlight Attributes whose values will contain highlighted matching terms
205
205
* @param filterArray String array that can take multiple nested filters
206
- * @param matches Defines whether an object that contains information about the matches should
207
- * be returned or not
208
- * @param facetsDistribution Facets for which to retrieve the matching count
206
+ * @param showMatchesPosition Defines whether an object that contains information about the
207
+ * matches should be returned or not
208
+ * @param facets Facets for which to retrieve the matching count
209
209
* @param sort Sort queries by an attribute value
210
210
*/
211
211
public SearchRequest (
@@ -217,8 +217,8 @@ public SearchRequest(
217
217
int cropLength ,
218
218
String [] attributesToHighlight ,
219
219
String [][] filterArray ,
220
- boolean matches ,
221
- String [] facetsDistribution ,
220
+ boolean showMatchesPosition ,
221
+ String [] facets ,
222
222
String [] sort ) {
223
223
this (
224
224
q ,
@@ -233,8 +233,8 @@ public SearchRequest(
233
233
attributesToHighlight ,
234
234
null ,
235
235
filterArray ,
236
- matches ,
237
- facetsDistribution ,
236
+ showMatchesPosition ,
237
+ facets ,
238
238
sort );
239
239
}
240
240
@@ -252,9 +252,9 @@ public SearchRequest(
252
252
* @param highlightPostTag String to customize highlight tag after every highlighted query terms
253
253
* @param attributesToHighlight Attributes whose values will contain highlighted matching terms
254
254
* @param filterArray String array that can take multiple nested filters
255
- * @param matches Defines whether an object that contains information about the matches should
256
- * be returned or not
257
- * @param facetsDistribution Facets for which to retrieve the matching count
255
+ * @param showMatchesPosition Defines whether an object that contains information about the
256
+ * matches should be returned or not
257
+ * @param facets Facets for which to retrieve the matching count
258
258
* @param sort Sort queries by an attribute value
259
259
*/
260
260
public SearchRequest (
@@ -269,8 +269,8 @@ public SearchRequest(
269
269
String highlightPostTag ,
270
270
String [] attributesToHighlight ,
271
271
String [][] filterArray ,
272
- boolean matches ,
273
- String [] facetsDistribution ,
272
+ boolean showMatchesPosition ,
273
+ String [] facets ,
274
274
String [] sort ) {
275
275
this (
276
276
q ,
@@ -285,8 +285,8 @@ public SearchRequest(
285
285
attributesToHighlight ,
286
286
null ,
287
287
filterArray ,
288
- matches ,
289
- facetsDistribution ,
288
+ showMatchesPosition ,
289
+ facets ,
290
290
sort );
291
291
}
292
292
@@ -303,8 +303,8 @@ private SearchRequest(
303
303
String [] attributesToHighlight ,
304
304
String [] filter ,
305
305
String [][] filterArray ,
306
- boolean matches ,
307
- String [] facetsDistribution ,
306
+ boolean showMatchesPosition ,
307
+ String [] facets ,
308
308
String [] sort ) {
309
309
this .q = q ;
310
310
this .offset = offset ;
@@ -318,8 +318,8 @@ private SearchRequest(
318
318
this .attributesToHighlight = attributesToHighlight ;
319
319
this .setFilter (filter );
320
320
this .setFilterArray (filterArray );
321
- this .matches = matches ;
322
- this .facetsDistribution = facetsDistribution ;
321
+ this .showMatchesPosition = showMatchesPosition ;
322
+ this .facets = facets ;
323
323
this .sort = sort ;
324
324
}
325
325
@@ -352,8 +352,8 @@ public String toString() {
352
352
.put ("cropMarker" , this .cropMarker )
353
353
.put ("highlightPreTag" , this .highlightPreTag )
354
354
.put ("highlightPostTag" , this .highlightPostTag )
355
- .put ("matches " , this .matches )
356
- .put ("facetsDistribution " , this .facetsDistribution )
355
+ .put ("showMatchesPosition " , this .showMatchesPosition )
356
+ .put ("facets " , this .facets )
357
357
.put ("sort" , this .sort )
358
358
.putOpt ("attributesToCrop" , this .attributesToCrop )
359
359
.putOpt ("attributesToHighlight" , this .attributesToHighlight )
0 commit comments