Commit 6020ae3de2c78ad1496bd3aaf26df660c5ed0195
1 parent
b75b604799
Exists in
master
SEARCH-106: Fix highlighting typo
Showing
1 changed file
with
11 additions
and
16 deletions
Show diff stats
src/main/java/org/alfresco/service/cmr/search/SearchParameters.java
... | ... | @@ -187,7 +187,7 @@ public class SearchParameters implements BasicSearchParameters |
187 | 187 | |
188 | 188 | private boolean spellCheck; |
189 | 189 | |
190 | - private GeneralHighlightParameters hightlight; | |
190 | + private GeneralHighlightParameters highlight; | |
191 | 191 | |
192 | 192 | /** |
193 | 193 | * Default constructor |
... | ... | @@ -233,7 +233,7 @@ public class SearchParameters implements BasicSearchParameters |
233 | 233 | sp.filterQueries.addAll(this.filterQueries); |
234 | 234 | sp.searchTerm = this.searchTerm; |
235 | 235 | sp.spellCheck = this.spellCheck; |
236 | - sp.hightlight = this.hightlight; | |
236 | + sp.highlight = this.highlight; | |
237 | 237 | return sp; |
238 | 238 | } |
239 | 239 | |
... | ... | @@ -280,9 +280,13 @@ public class SearchParameters implements BasicSearchParameters |
280 | 280 | return query; |
281 | 281 | } |
282 | 282 | |
283 | - public void setHightlight(GeneralHighlightParameters hightlight) | |
283 | + /** | |
284 | + Sets parameters used for search highlighing | |
285 | + * @param highlight GeneralHighlightParameters | |
286 | + */ | |
287 | + public void setHighlight(GeneralHighlightParameters highlight) | |
284 | 288 | { |
285 | - this.hightlight = hightlight; | |
289 | + this.highlight = highlight; | |
286 | 290 | } |
287 | 291 | |
288 | 292 | /** |
... | ... | @@ -379,21 +383,12 @@ public class SearchParameters implements BasicSearchParameters |
379 | 383 | } |
380 | 384 | |
381 | 385 | /** |
382 | - * Adds parameters used for search highlighing | |
383 | - * @param hightlight - the highlighting parameters | |
384 | - */ | |
385 | - public void addHightlight(GeneralHighlightParameters hightlight) | |
386 | - { | |
387 | - this.hightlight = hightlight; | |
388 | - } | |
389 | - | |
390 | - /** | |
391 | 386 | * Gets the parameters used for search highlighing |
392 | 387 | * @return GeneralHighlightParameters - the highlighting parameters |
393 | 388 | */ |
394 | - public GeneralHighlightParameters getHightlight() | |
389 | + public GeneralHighlightParameters getHighlight() | |
395 | 390 | { |
396 | - return hightlight; | |
391 | + return highlight; | |
397 | 392 | } |
398 | 393 | |
399 | 394 | /** |
... | ... | @@ -1257,7 +1252,7 @@ public class SearchParameters implements BasicSearchParameters |
1257 | 1252 | .append(this.excludeTenantFilter).append(", isBulkFetchEnabled=").append(this.isBulkFetchEnabled) |
1258 | 1253 | .append(", queryConsistency=").append(this.queryConsistency).append(", sinceTxId=") |
1259 | 1254 | .append(this.sinceTxId).append(", searchTerm=").append(this.searchTerm) |
1260 | - .append(", highlight=").append(this.hightlight) | |
1255 | + .append(", highlight=").append(this.highlight) | |
1261 | 1256 | .append(", spellCheck=").append(this.spellCheck).append("]"); |
1262 | 1257 | return builder.toString(); |
1263 | 1258 | } | ... | ... |