}
@Override
public List<Product> findProducts(String query) {
try {
SearchResponse select = search.select(query, 0, 10, null);
List<Product> products = new ArrayList<>();
for (Document document : select.getResults()) {
Collection<Object> fieldValues = document.getFieldValues("uri");
Iterator<Object> idIterator = fieldValues.iterator();
while (idIterator.hasNext()) {
try {
products.add(productService.getProductById((String)idIterator.next()));