From 857ceab249f896a02c10b1fa003a4600ad3e0dc1 Mon Sep 17 00:00:00 2001 From: helt Date: Mon, 9 Jul 2018 19:02:28 +0200 Subject: [PATCH] Fixed outdated SolrProductRepositoryImpl example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a2e12dd14..aeef18aa3 100644 --- a/README.md +++ b/README.md @@ -110,17 +110,17 @@ public interface SolrProductRepositoryCustom { public class SolrProductRepositoryImpl implements SolrProductRepositoryCustom { - private SolrOperations solrTemplate; + private SolrOperations operations; @Override public Page findProductsByCustomImplementation(String value, Pageable page) { Query query = new SimpleQuery(new SimpleStringCriteria("name:"+value)).setPageRequest(page); - return solrTemplate.queryForPage(query, Product.class); + return solrTemplate.queryForPage("collection1", query, Product.class); } @Autowired public void setOperations(SolrOperations operations) { - this.operations = operations; + this.solrTemplate = operations; } }