| Line 276... |
Line 276... |
| 276 |
throws Throwable {
|
276 |
throws Throwable {
|
| 277 |
String query1 = query.toLowerCase();
|
277 |
String query1 = query.toLowerCase();
|
| 278 |
|
278 |
|
| 279 |
List<ItemDescriptionModel> partnersItemDescription = inventoryService
|
279 |
List<ItemDescriptionModel> partnersItemDescription = inventoryService
|
| 280 |
.getAllPartnerItemStringDescription(anyColor, activeOnly).parallelStream()
|
280 |
.getAllPartnerItemStringDescription(anyColor, activeOnly).parallelStream()
|
| 281 |
.filter(x -> x.getItemDescription().toLowerCase().matches(".*?" + query1 + ".*?"))
|
281 |
.filter(x -> x.getItemDescription().toLowerCase().contains(query1))
|
| 282 |
.collect(Collectors.toList());
|
282 |
.collect(Collectors.toList());
|
| 283 |
LOGGER.info("partnersItemDescription" + partnersItemDescription);
|
283 |
LOGGER.info("partnersItemDescription" + partnersItemDescription);
|
| 284 |
|
284 |
|
| 285 |
model.addAttribute("response1", mvcResponseSender.createResponseString(partnersItemDescription));
|
285 |
model.addAttribute("response1", mvcResponseSender.createResponseString(partnersItemDescription));
|
| 286 |
return "response";
|
286 |
return "response";
|